-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Longflag should support dash ('-') chars #17
Comments
I think "-" is supported. I believe either tclap or GenerateCLP was modified to support "-" in the flag name. It might just be at runtime, i.e. you may have specify it as "" but when run, you can substitute "-" for "". |
Here is the error I have at compile time:
Here is the interesting part in the xml:
While GenerateCLP might support it, ModuleDescriptionParser does not. |
I think you need to "define" the option using "_" (--number_of_elements) but then you can call it with "-" (--number-of-elements). |
We should really fix ModuleDescriptionParser, forcing to use "_" doesn't On Tue, Apr 16, 2013 at 1:55 PM, Julien Finet [email protected]:
+1 919 869 8849 |
It seems this is more a hidden feature ... considering that documentation On Tue, Apr 16, 2013 at 1:57 PM, Jim Miller [email protected]:
+1 919 869 8849 |
This has come up in the Slicer forum (https://discourse.slicer.org/t/hyphen-dash-in-cli-command-long-flag-argument/19526), but - as always - there was an easy workaround (rename arguments). Often renaming the arguments is not necessary because short form of the argument can be used (e.g., the long form |
command line applications typically have dashes in the names of their long flags.
It should be possible to have parameters such as:
--no-something
--use-something
...
The text was updated successfully, but these errors were encountered: