summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-21 16:15:22 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-21 16:24:10 -0400
commit067f512e9469614d0536d2ac964365bd19c6fa4b (patch)
tree17fd1f405ca046833ec671a340c33971ddfe7284 /src/global.h
parent37097e600819a74da49a61bd1b9ea54c1ec53092 (diff)
downloadfork-ledger-067f512e9469614d0536d2ac964365bd19c6fa4b.tar.gz
fork-ledger-067f512e9469614d0536d2ac964365bd19c6fa4b.tar.bz2
fork-ledger-067f512e9469614d0536d2ac964365bd19c6fa4b.zip
The --help (-h, -H) options now visit the man page
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/global.h b/src/global.h
index 1fb3e157..a7e5a0db 100644
--- a/src/global.h
+++ b/src/global.h
@@ -115,11 +115,13 @@ See LICENSE file included with the distribution for details and disclaimer.";
OPTION(global_scope_t, args_only);
OPTION(global_scope_t, debug_);
- OPTION(global_scope_t, full_help); // -H
- OPTION(global_scope_t, help); // -h
- OPTION(global_scope_t, help_calc);
- OPTION(global_scope_t, help_comm);
- OPTION(global_scope_t, help_disp);
+ void visit_man_page() const;
+
+ OPTION_(global_scope_t, full_help, DO() { parent->visit_man_page(); }); // -H
+ OPTION_(global_scope_t, help, DO() { parent->visit_man_page(); }); // -h
+ OPTION_(global_scope_t, help_calc, DO() { parent->visit_man_page(); });
+ OPTION_(global_scope_t, help_comm, DO() { parent->visit_man_page(); });
+ OPTION_(global_scope_t, help_disp, DO() { parent->visit_man_page(); });
OPTION__
(global_scope_t, init_file_, // -i