From 5ac0162c3af95efa08a07b84ff62ad32842922c7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 5 Jan 2015 13:19:55 +0100 Subject: udevadm,..: make --help output of udev tools more like the output of the various other tools --- src/udev/collect/collect.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/udev/collect') diff --git a/src/udev/collect/collect.c b/src/udev/collect/collect.c index 11a618c8e2..4bb6edbef1 100644 --- a/src/udev/collect/collect.c +++ b/src/udev/collect/collect.c @@ -68,17 +68,19 @@ noreturn static void sig_alrm(int signo) static void usage(void) { - printf("Usage: collect [options] \n" - " -a,--add add ID to the list \n" - " -r,--remove remove ID from the list \n" - " -d,--debug debug to stderr\n" - " -h,--help print this help text\n\n" + printf("%s [options] \n\n" + "Collect variables across events.\n\n" + " -h --help Print this message\n" + " -a --add Add ID to the list \n" + " -r --remove Remove ID from the list \n" + " -d --debug Debug to stderr\n\n" " Adds ID to the list governed by .\n" " must be part of the list .\n" " If all IDs given by are listed (ie collect has been\n" " invoked for each ID in ) collect returns 0, the\n" " number of missing IDs otherwise.\n" - " On error a negative number is returned.\n\n"); + " On error a negative number is returned.\n\n" + , program_invocation_short_name); } /* -- cgit v1.2.3-54-g00ecf