Updated this example so that the output from the -h option listed

the correct name of the program.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403314
This commit is contained in:
Davis King 2009-12-10 01:03:10 +00:00
parent c7e6da5c99
commit f7707c11c6
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
The output from the program when the -h option is given is:
Usage: dclib_example (-c|-d|-l) --in input_file --out output_file
Usage: compress_stream_ex (-c|-d|-l) --in input_file --out output_file
Options:
-c Indicates that we want to compress a file.
-d Indicates that we want to decompress a file.
@ -100,7 +100,7 @@ int main(int argc, char** argv)
if (parser.option("h"))
{
// display all the command line options
cout << "Usage: dclib_example (-c|-d|-l) --in input_file --out output_file\n";
cout << "Usage: compress_stream_ex (-c|-d|-l) --in input_file --out output_file\n";
// This function prints out a nicely formatted list of
// all the options the parser has
parser.print_options(cout);