diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-07 16:53:15 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-07 16:53:15 -0500 |
commit | 81ce2af261245727ee92ba1e0070571028602e12 (patch) | |
tree | e3819dcbf70bca63eedd25e69d5d2175bc9fd16b /src/accelerometer | |
parent | 2ce4bb9f127e3e57494b29310e08dbb226de70cd (diff) |
udevadm,..: make --help output of udev tools more like the output of the various other tools
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/accelerometer')
-rw-r--r-- | src/accelerometer/accelerometer.c | 12 |
1 files changed, 7 insertions, 5 deletions
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] <device path>\n" - " -d,--debug debug to stderr\n" - " -h,--help print this help text\n\n"); +static void help(void) { + + printf("%s [options] <device path>\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) |