Comments (1)
It's interesting. Here's how it would work:
We would create two .ggo files, one for inline detox and one for detox:
package "detox"
version "1.3.0"
option "config" f "choose which config file to use" string typestr="filename"
option "dry-run" n "do a dry run (don't actually do anything)"
option "inline" - "run inline mode"
option "list" L "list available sequences and exit\nwith -v ... dump sequence contents"
option "recursive" r "be recursive (descend into subdirectories)"
option "remove-trailing" - "remove trailing _ and - before or after a period"
option "sequence" s "choose which sequence to detox with"
Then, to build them, the line would look something like this:
gengetopt < parse_options_detox.ggo --file=parse_options_detox --func-name=parse_options_detox --arg-struct-name=detox_options --unamed-opts
Unfortunately, because ggo generates its own structure (per include file), we can't use the same structure prefix. Also, because you can't fully rename the functions inside of the generated .c file, we might also need to create two similar parse_options.c files, to dump the output from this in to the existing (neutral) structure.
I'm not sure all of that is worth the effort.
from detox.
Related Issues (20)
- utf_8 filter converts spaces to underscores HOT 1
- add a flag to convert uppercase characters to lowercase HOT 1
- detoxrc help request (not an issue) HOT 1
- OneDrive .tbl file HOT 3
- 0x20 Space.. HOT 1
- Handle 2044 (⁄ Fraction Slash) HOT 1
- unsupported unicode length HOT 4
- Equal sign not tamed HOT 2
- add --git option to issue git mv instead of mv HOT 1
- option to ignore spaces and fix only wrong chars HOT 1
- Shift detox from transliteration to handling problematic characters
- Review CodeQL sscanf issues
- Figure out snap builds
- Detox not replacing 0x202F (narrow no-break space) on MacOS
- Don't append underscore after deaccented characters?
- [feature request] Add ability to set a max filename length
- Ignore folders? HOT 3
- double free or corruption (out) when using custom sequence
- Is it possible to replace characters and remove punctuation (i.e. parentheses, braces etc.) in one detox command? HOT 1
- Please provide a way to retain German Umlaute ÄÜÖäüö HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detox.