From d4e1d47b488e8bb47e7e00994adba13ba7205419 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Feb 24 2021 16:09:00 +0000 Subject: Fix: tools: Describe interactive crm_mon use in help and man page. --- diff --git a/tools/crm_mon.8.inc b/tools/crm_mon.8.inc index e4cd7e3..6b46d7b 100644 --- a/tools/crm_mon.8.inc +++ b/tools/crm_mon.8.inc @@ -12,3 +12,6 @@ crm_mon mode [options] /command line arguments./ .SH TIME SPECIFICATION + +/or --exclude=list./ +.SH INTERACTIVE USE diff --git a/tools/crm_mon.c b/tools/crm_mon.c index 083b7ae..aafc80f 100644 --- a/tools/crm_mon.c +++ b/tools/crm_mon.c @@ -1062,6 +1062,10 @@ build_arg_context(pcmk__common_args_t *args, GOptionGroup **group) { "times on the command line, and each can give a comma-separated list of sections.\n" "The options are applied to the default set, from left to right as seen on the\n" "command line. For a list of valid sections, pass --include=list or --exclude=list.\n\n" + "Interactive Use:\n\n" + "When run interactively, crm_mon can be told to hide and display various sections\n" + "of output. To see a help screen explaining the options, hit '?'. Any key stroke\n" + "aside from those listed will cause the screen to refresh.\n\n" "Examples:\n\n" "Display the cluster status on the console with updates as they occur:\n\n" "\tcrm_mon\n\n" diff --git a/tools/fix-manpages b/tools/fix-manpages index 714ecce..f1f6f0d 100644 --- a/tools/fix-manpages +++ b/tools/fix-manpages @@ -26,7 +26,7 @@ # This leaves the --help-all output looking good and removes redundant # stuff from the man page. Feel free to add additional headers here. # Not all tools will have all headers. -/.SH NOTES\|.SH OPERATION SPECIFICATION\|.SH OUTPUT CONTROL\|.SH TIME SPECIFICATION/{ n +/.SH NOTES\|.SH INTERACTIVE USE\|.SH OPERATION SPECIFICATION\|.SH OUTPUT CONTROL\|.SH TIME SPECIFICATION/{ n N N d