diff options
author | Sami Kerola | 2011-09-17 12:52:32 +0200 |
---|---|---|
committer | Sami Kerola | 2011-09-17 15:07:52 +0200 |
commit | 6f162034d0fc9a49ab1dcf2b773fa9677215cba3 (patch) | |
tree | e6f0572f92578723a0c385cb6acd12b4aca13960 /include/c.h | |
parent | ipcrm: check IPC syscalls (diff) | |
download | kernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.tar.gz kernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.tar.xz kernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.zip |
build-sys: fixes to USAGE_* macros
The USAGE_BEGIN_TAIL is removed as unnecessary.
In between command specific options and --help & --version
USAGE_SEPARATOR is inserted. For now the separator is empty line.
The USAGE_MAN_TAIL is changed to take an argument.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/c.h b/include/c.h index 975cc1bf4..ba274f45f 100644 --- a/include/c.h +++ b/include/c.h @@ -216,10 +216,10 @@ static inline int dirfd(DIR *d) */ #define USAGE_HEADER _("\nUsage:\n") #define USAGE_OPTIONS _("\nOptions:\n") +#define USAGE_SEPARATOR _("\n") #define USAGE_HELP _(" -h, --help display this help and exit\n") #define USAGE_VERSION _(" -V, --version output version information and exit\n") -#define USAGE_BEGIN_TAIL _("\n") -#define USAGE_MAN_TAIL _("For more details see %s.\n") +#define USAGE_MAN_TAIL(_man) _("\nFor more details see %s.\n"), _man #define UTIL_LINUX_VERSION _("%s from %s\n"), program_invocation_short_name, PACKAGE_STRING |