diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 16:15:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 16:24:10 -0400 |
commit | 067f512e9469614d0536d2ac964365bd19c6fa4b (patch) | |
tree | 17fd1f405ca046833ec671a340c33971ddfe7284 /src/global.h | |
parent | 37097e600819a74da49a61bd1b9ea54c1ec53092 (diff) | |
download | fork-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.h | 12 |
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 |