From 295dd90226852a1f3b3dd108ed01dd1d7da92240 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Dec 2012 15:10:29 -0500 Subject: 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 --- sys-utils/flock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-utils/flock.c') 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] \n" - " %1$s [options] -c \n" - " %1$s [options] -c \n"), + _(" %1$s [options] [command args]\n" + " %1$s [options] -c \n" + " %1$s [options] \n"), program_invocation_short_name); fputs(USAGE_OPTIONS, stderr); fputs(_( " -s --shared get a shared lock\n"), stderr); -- cgit v1.2.3-55-g7522