commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Possibility to turn off or customize version/help option

Open ptylenda opened this issue 8 years ago • 2 comments

It would be a good idea to make it possible to turn off (or at least customize) version and help options, probably via an attribute for the options class. This especially concerns version option - we are migrating from old custom parsers to the CommandLine library and we have noticed that it conflicts with our custom version option (-v, --version). This option is unrelated to version of an application, it concerns version of a file being processed by the executable. In our case it is not possible to use a different option name as we have to maintain 100% backward compatibility inside an enterprise system. Fortunately this "conflict" seems to be only visible in the help screen, when both our custom option and the default option are displayed at once.

ptylenda avatar Sep 19 '16 14:09 ptylenda

This is a good idea. Right now both --help and --version are hardcoded into the application.

nemec avatar Nov 05 '16 07:11 nemec

+1

cjbush avatar Jan 24 '17 00:01 cjbush