diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-05 13:19:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-05 13:19:55 +0100 |
commit | 5ac0162c3af95efa08a07b84ff62ad32842922c7 (patch) | |
tree | 3ff2ab0a9f2ecde655ec086d62cbedb05cd21ef8 /src/udev/udevadm-test-builtin.c | |
parent | 00b4ffdecbb39d849af65c0ab741be482325a4a9 (diff) |
udevadm,..: make --help output of udev tools more like the output of the various other tools
Diffstat (limited to 'src/udev/udevadm-test-builtin.c')
-rw-r--r-- | src/udev/udevadm-test-builtin.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/udev/udevadm-test-builtin.c b/src/udev/udevadm-test-builtin.c index a300e1e9d7..b2a7376292 100644 --- a/src/udev/udevadm-test-builtin.c +++ b/src/udev/udevadm-test-builtin.c @@ -34,10 +34,14 @@ #include "udev.h" static void help(struct udev *udev) { - fprintf(stderr, "\n"); - fprintf(stderr, "Usage: udevadm builtin [--help] COMMAND SYSPATH\n"); + printf("%s builtin [--help] COMMAND SYSPATH\n\n" + "Test a built-in command.\n\n" + " -h --help Print this message\n" + " --version Print version of the program\n\n" + "Commands:\n" + , program_invocation_short_name); + udev_builtin_list(udev); - fprintf(stderr, "\n"); } static int adm_builtin(struct udev *udev, int argc, char *argv[]) { @@ -112,6 +116,6 @@ out: const struct udevadm_cmd udevadm_test_builtin = { .name = "test-builtin", .cmd = adm_builtin, - .help = "test a built-in command", + .help = "Test a built-in command", .debug = true, }; |