From 067f512e9469614d0536d2ac964365bd19c6fa4b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Feb 2009 16:15:22 -0400 Subject: The --help (-h, -H) options now visit the man page --- src/global.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/global.h') 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 -- cgit v1.2.3