summaryrefslogtreecommitdiff
path: root/src/udev/udevadm-test-builtin.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-07 16:53:15 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-07 16:53:15 -0500
commit81ce2af261245727ee92ba1e0070571028602e12 (patch)
treee3819dcbf70bca63eedd25e69d5d2175bc9fd16b /src/udev/udevadm-test-builtin.c
parent2ce4bb9f127e3e57494b29310e08dbb226de70cd (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-test-builtin.c')
-rw-r--r--src/udev/udevadm-test-builtin.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/udev/udevadm-test-builtin.c b/src/udev/udevadm-test-builtin.c
index f25608c486..baaeca9352 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,
};