c-blake / cligen

Nim library to infer/generate command-line-interfaces / option / argument parsing; Docs at
https://c-blake.github.io/cligen/
ISC License
496 stars 23 forks source link

Remove --version and --help from options list #189

Closed vitreo12 closed 3 years ago

vitreo12 commented 3 years ago

Hello,

Is there a quick way to remove the --version and --help from the printed options list? I am only able to remove --help-syntax by setting clCfg.helpSyntax = "".

Thanks a lot!

c-blake commented 3 years ago

Yes. In the current VC head you can just set any of the 3 builtin options to CLIGEN-NOHELP as per the current RELEASE_NOTES.md

vitreo12 commented 3 years ago

Thanks a lot! When is this change going to be released in a new version? I'd need it my users to just nimble install my package easily, instead of going through git HEADS of the dependencies.

c-blake commented 3 years ago

I will probably be releasing a new version in the next few days. A week at most.

vitreo12 commented 3 years ago

Sweet! I'll keep an eye on it, keep up the great work :)

c-blake commented 3 years ago

Released. (And thanks.)