#29 command-line argument improvements

Unstable (example)

This patch adds support for unix-style arguments, eg '--verbose'. Currently only '-v' or '-verbose' styles are supported.

This patch adds a --help (-h, -help) command to display the program name, version, website, and a list of supported arguments.

Running the program with an unrecognized command will now result in an error message stating such, with a suggestion to try '--help' to get started.


  • Dallen Wilson

    Dallen Wilson - 2011-04-12

    command-line argument improvements.

  • Dallen Wilson

    Dallen Wilson - 2011-04-15

    Uploaded an updated version of this patch: '02-command-line-args-improved.patch". Please do not use command-line-args.patch.

    Changed priority to 1 - Lowest.

    Updated some of the -profile code that was missed the first time around.
    Handling of arguments that require additional input (a string, a number, etc) is now handled more gracefully if the required input is omitted.

    The patch was written using svn rev 2890 as the base.

  • Dallen Wilson

    Dallen Wilson - 2011-04-15
    • priority: 5 --> 1
  • Darren Janeczek

    Darren Janeczek - 2014-07-30

    Committed revision 3079.

  • Darren Janeczek

    Darren Janeczek - 2014-07-30
    • status: open --> closed-accepted
    • Group: --> Unstable (example)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks