summaryrefslogtreecommitdiff
path: root/examples/hello/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-17 13:59:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-17 13:59:39 +0200
commit0e56fe29a9afeee00e02e722496678df89d37d50 (patch)
treeada5f6ea6978344f2e75e6194d65a1191cc6e649 /examples/hello/driver.cxx
parent577a38358b295379511ea8bb130ef1dcb7157c0f (diff)
Complete the implementation of the option documentation
Add the man page generator. Port CLI usage, HTML documentation and the man page to the auto-generated version. Update examples and documentation.
Diffstat (limited to 'examples/hello/driver.cxx')
-rw-r--r--examples/hello/driver.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/hello/driver.cxx b/examples/hello/driver.cxx
index b08e6be..bb82d22 100644
--- a/examples/hello/driver.cxx
+++ b/examples/hello/driver.cxx
@@ -12,10 +12,9 @@ using namespace std;
void
usage ()
{
- cerr << "usage: driver <options> <names>" << endl
- << " [--help]" << endl
- << " [--greeting <string>]" << endl
- << " [--exclamations <integer>]" << endl;
+ cerr << "usage: driver [options] <names>" << endl
+ << "options:" << endl;
+ options::print_usage (cerr);
}
int