OutpostUniverse / OP2Archive

Console Application for examining, creating, and extracting files from Outpost 2 .vol and .clm archives.
https://wiki.outpost2.net/doku.php?id=outpost_2:helper_programs:op2archive
MIT License
1 stars 0 forks source link

Help Documentation bug #44

Closed DanRStevens closed 4 years ago

DanRStevens commented 4 years ago

The documentation lists the following optional flags:

-H / --Help / -?: Displays help information.
-Q / --Quiet: [Default false] Prevents application from issuing console messages.
-O / --Overwrite: [Default false] Allows application to overwrite existing files.
-D / --DestinationDirectory: [Default is ./]. Sets the destination directory for extracted file(s).

However, the -- variants do not work as advertised:

./OP2Archive --Help
A valid command was not provided.
Run without arguments to see usage message.

Instead, the commands work without the -- prefix:

./OP2Archive Help

OP2Archive Ver 1.2.2 - Outpost 2 Archive Access and Maintenance
...

In src/ConsoleArgumentParser.cpp the check looks like:

if (commandStrUpper == "HELP" || commandStrUpper == "-?" || commandStrUpper == "-H") {