summaryrefslogtreecommitdiff
path: root/src/udev/udevadm-settle.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-settle.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-settle.c')
-rw-r--r--src/udev/udevadm-settle.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/udev/udevadm-settle.c b/src/udev/udevadm-settle.c
index 0a8f535c4a..21750aaa18 100644
--- a/src/udev/udevadm-settle.c
+++ b/src/udev/udevadm-settle.c
@@ -37,10 +37,13 @@
#include "util.h"
static void help(void) {
- printf("Usage: udevadm settle OPTIONS\n"
- " -t,--timeout=<seconds> maximum time to wait for events\n"
- " -E,--exit-if-exists=<file> stop waiting if file exists\n"
- " -h,--help\n\n");
+ printf("%s settle OPTIONS\n\n"
+ "Wait for pending udev events.\n\n"
+ " -h --help Show this help\n"
+ " --version Show package version\n"
+ " -t --timeout=SECONDS Maximum time to wait for events\n"
+ " -E --exit-if-exists=FILE Stop waiting if file exists\n"
+ , program_invocation_short_name);
}
static int adm_settle(struct udev *udev, int argc, char *argv[]) {
@@ -145,5 +148,5 @@ out:
const struct udevadm_cmd udevadm_settle = {
.name = "settle",
.cmd = adm_settle,
- .help = "wait for pending udev events",
+ .help = "Wait for pending udev events",
};