summaryrefslogtreecommitdiff
path: root/src/udev/udevadm.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-05 13:19:55 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-05 13:19:55 +0100
commit5ac0162c3af95efa08a07b84ff62ad32842922c7 (patch)
tree3ff2ab0a9f2ecde655ec086d62cbedb05cd21ef8 /src/udev/udevadm.c
parent00b4ffdecbb39d849af65c0ab741be482325a4a9 (diff)
udevadm,..: make --help output of udev tools more like the output of the various other tools
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r--src/udev/udevadm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index a957e92708..56cd0cd4ec 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -60,11 +60,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;
}