Commit f7707c11 authored by Davis King's avatar Davis King

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
parent c7e6da5c
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
The output from the program when the -h option is given is: 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: Options:
-c Indicates that we want to compress a file. -c Indicates that we want to compress a file.
-d Indicates that we want to decompress a file. -d Indicates that we want to decompress a file.
...@@ -100,7 +100,7 @@ int main(int argc, char** argv) ...@@ -100,7 +100,7 @@ int main(int argc, char** argv)
if (parser.option("h")) if (parser.option("h"))
{ {
// display all the command line options // 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 // This function prints out a nicely formatted list of
// all the options the parser has // all the options the parser has
parser.print_options(cout); parser.print_options(cout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment