Re: Command line help options
- Posted by jeremy (admin) Nov 29, 2010
- 1516 views
ChrisB said...
Just done a little with the example, and if you copy and paste, it doesn't work, as is. May I submit
Chris, thanks for catching this. It has been fixed in svn:4340. For clarification... If the user wants to use --get-help, for example, as the "help" parameter, they should put the word HELP in the options for that parameter, i.e.
sequence opts = { { 0, "get-help", "Display help message", { NO_PARAMETER, HELP } } }
This will tell cmd_parse that the "get-help" parameter is the help and it will not do it's own thing.
Jeremy