Re: Command line help options

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu