How would one go about specifying short options without their long counterparts in boost?
(",w", po::value<int>(), "Perfrom write with N frames")
generates this
-w [ -- ] arg : Perfrom write with N frames
Any way to specify short options only?
If you are using command line parser, there is a way to set different styles. So the solution would be to use only long options and enable allow_long_disguise style which allows long options to be specified with one dash (i.e. "-long_option"). Here is an example:
There will be a little problem with the description output though:
And that one is hard to fix because this is what is being used to form this output:
The only fix for this that comes to mind is replacing "--" with "-" in resulting string. For example:
The best thing you can do is to fix the code where it prints empty long option description and send a patch to the author of the library.