From 2fae9e5d26536fc61ad06a3d295c9bb8e40d215e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 15 Dec 2001 20:46:30 +0000 Subject: Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf. --- src/uname.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/uname.c') diff --git a/src/uname.c b/src/uname.c index d69763158..834466921 100644 --- a/src/uname.c +++ b/src/uname.c @@ -93,20 +93,23 @@ usage (int status) else { printf (_("Usage: %s [OPTION]...\n"), program_name); - printf (_("\ + fputs (_("\ Print certain system information. With no OPTION, same as -s.\n\ \n\ -a, --all print all information, in the following order:\n\ -s, --kernel-name print the kernel name\n\ -n, --nodename print the network node hostname\n\ -r, --kernel-release print the kernel release\n\ +"), stdout); + fputs (_("\ -v, --kernel-version print the kernel version\n\ -m, --machine print the machine hardware name\n\ -p, --processor print the processor type\n\ -i, --hardware-platform print the hardware platform\n\ -o, --operating-system print the operating system\n\ - --help display this help and exit\n\ - --version output version information and exit\n")); +"), stdout); + fputs (HELP_OPTION_DESCRIPTION, stdout); + fputs (VERSION_OPTION_DESCRIPTION, stdout); puts (_("\nReport bugs to .")); } exit (status); -- cgit v1.2.3-54-g00ecf