From 81ce2af261245727ee92ba1e0070571028602e12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jan 2015 16:53:15 -0500 Subject: udevadm,..: make --help output of udev tools more like the output of the various other tools Signed-off-by: Anthony G. Basile --- src/accelerometer/accelerometer.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/accelerometer') diff --git a/src/accelerometer/accelerometer.c b/src/accelerometer/accelerometer.c index e0e9c726b1..862224b7aa 100644 --- a/src/accelerometer/accelerometer.c +++ b/src/accelerometer/accelerometer.c @@ -199,11 +199,13 @@ static void test_orientation(struct udev *udev, puts(text); } -static void help(void) -{ - printf("Usage: accelerometer [options] \n" - " -d,--debug debug to stderr\n" - " -h,--help print this help text\n\n"); +static void help(void) { + + printf("%s [options] \n\n" + "Accelerometer device identification.\n\n" + " -h --help Print this message\n" + " -d --debug Debug to stderr\n" + , program_invocation_short_name); } int main (int argc, char** argv) -- cgit v1.2.3-54-g00ecf