summaryrefslogtreecommitdiff
path: root/src/udev/collect
diff options
context:
space:
mode:
authorRobert Milasan <rmilasan@suse.com>2015-01-01 18:11:22 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-01 14:38:21 -0500
commit257e968d8c726e1a7be7b455d0e6ad29b5d0756c (patch)
tree9517dbfc4366d1df78cbffdf51da6e3f6b1a17cf /src/udev/collect
parentba52f15a5827b7ae8c55c53cdcc5bb9a6abbf0db (diff)
udev: improve help/usage for some more programs
Diffstat (limited to 'src/udev/collect')
-rw-r--r--src/udev/collect/collect.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/udev/collect/collect.c b/src/udev/collect/collect.c
index 16675fbe0e..11a618c8e2 100644
--- a/src/udev/collect/collect.c
+++ b/src/udev/collect/collect.c
@@ -68,15 +68,17 @@ noreturn static void sig_alrm(int signo)
static void usage(void)
{
- printf("usage: collect [--add|--remove] [--debug] <checkpoint> <id> <idlist>\n"
- "\n"
+ printf("Usage: collect [options] <checkpoint> <id> <idlist>\n"
+ " -a,--add add ID <id> to the list <idlist>\n"
+ " -r,--remove remove ID <id> from the list <idlist>\n"
+ " -d,--debug debug to stderr\n"
+ " -h,--help print this help text\n\n"
" Adds ID <id> to the list governed by <checkpoint>.\n"
" <id> must be part of the list <idlist>.\n"
" If all IDs given by <idlist> are listed (ie collect has been\n"
" invoked for each ID in <idlist>) collect returns 0, the\n"
" number of missing IDs otherwise.\n"
- " On error a negative number is returned.\n"
- "\n");
+ " On error a negative number is returned.\n\n");
}
/*