From 551b9cd3f9ca3a84c2a8a4aec0c22bb82cbf8abf Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sun, 25 Jun 2017 22:01:12 +0200 Subject: misc: update --help content again We change -h, --help display this help and exit -V, --version output version information and exit to -h, --help display this help -V, --version print version Some thoughts about this: * use "display" for --help because it matches better if we would add pager support (like git --help) * "print" for --version to be different * "this" for --help is important to make clear that running --help would not give you any better information than the one you see already * remove "information and exit" because it's bloat for the short-help, everybody knows what it does if it exists In the manpages we should use the old, longer but more correct descriptions, inclusive a reminder if --help/--version are only working when used as the only option. Note the term "version information" indicates that we don't only print a single version number. CC: J William Piggott Signed-off-by: Ruediger Meier --- include/c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/c.h') diff --git a/include/c.h b/include/c.h index 94ebf7e7d..fc766e069 100644 --- a/include/c.h +++ b/include/c.h @@ -316,8 +316,8 @@ static inline int xusleep(useconds_t usec) #define USAGE_COLUMNS _("\nAvailable output columns:\n") #define USAGE_SEPARATOR "\n" -#define USAGE_OPTSTR_HELP _("display this help and exit") -#define USAGE_OPTSTR_VERSION _("output version information and exit") +#define USAGE_OPTSTR_HELP _("display this help") +#define USAGE_OPTSTR_VERSION _("print version") #define print_usage_help_options(marg_dsc) \ printf( \ -- cgit v1.2.3-55-g7522