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/udev/udevadm.c | |
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/udev/udevadm.c')
-rw-r--r-- | src/udev/udevadm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 330b487161..3e57cf6dee 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -59,11 +59,14 @@ static const struct udevadm_cmd *udevadm_cmds[] = { static int adm_help(struct udev *udev, int argc, char *argv[]) { unsigned int i; - fprintf(stderr, "Usage: udevadm [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n"); + printf("%s [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n\n" + "Send control commands or test the device manager.\n\n" + "Commands:\n" + , program_invocation_short_name); + for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) if (udevadm_cmds[i]->help != NULL) - printf(" %-12s %s\n", udevadm_cmds[i]->name, udevadm_cmds[i]->help); - fprintf(stderr, "\n"); + printf(" %-12s %s\n", udevadm_cmds[i]->name, udevadm_cmds[i]->help); return 0; } |