diff options
author | Mike Frysinger | 2012-12-26 21:10:29 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-09 13:36:58 +0100 |
commit | 295dd90226852a1f3b3dd108ed01dd1d7da92240 (patch) | |
tree | dd5a98b5e1afe2079b67680bb744291236a55b3a /sys-utils/flock.c | |
parent | include/ttyutils: add default chardata (diff) | |
download | kernel-qcow2-util-linux-295dd90226852a1f3b3dd108ed01dd1d7da92240.tar.gz kernel-qcow2-util-linux-295dd90226852a1f3b3dd108ed01dd1d7da92240.tar.xz kernel-qcow2-util-linux-295dd90226852a1f3b3dd108ed01dd1d7da92240.zip |
flock: improve usage strings
The current examples miss the best usage of all: specifying the command
and its arguments directly on the command line. Add that to both the
program usage and the man page.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r-- | sys-utils/flock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c index b51415529..50435e0ec 100644 --- a/sys-utils/flock.c +++ b/sys-utils/flock.c @@ -48,9 +48,9 @@ static void __attribute__((__noreturn__)) usage(int ex) { fprintf(stderr, USAGE_HEADER); fprintf(stderr, - _(" %1$s [options] <file descriptor number>\n" - " %1$s [options] <file> -c <command>\n" - " %1$s [options] <directory> -c <command>\n"), + _(" %1$s [options] <file|directory> <command> [command args]\n" + " %1$s [options] <file|directory> -c <command>\n" + " %1$s [options] <file descriptor number>\n"), program_invocation_short_name); fputs(USAGE_OPTIONS, stderr); fputs(_( " -s --shared get a shared lock\n"), stderr); |