]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (helper) update examples in the help message
authorMasatake YAMATO <yamato@redhat.com>
Fri, 15 Oct 2021 01:28:09 +0000 (10:28 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 21 Oct 2021 12:06:39 +0000 (21:06 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c

index 2af66bdbb930fe9b381aac7951119b0ac8615a97..67ecc417e0cfc2d0fbd1a754f75557174ef23357 100644 (file)
@@ -46,9 +46,9 @@ static void __attribute__((__noreturn__)) usage(FILE *out, int status)
 
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Examples:\n"), out);
-       fprintf(out, _(" %s ro-regular-file 3     using 3, open an regular file\n"),
+       fprintf(out, _("Using 3, open /etc/group:\n\n   $ %s ro-regular-file 3 file=/etc/group\n\n"),
                program_invocation_short_name);
-       fprintf(out, _(" %s pipe-no-fork 3 4      using 3 and 4, make a pair\n"),
+       fprintf(out, _("Using 3 and 4, make a pipe:\n\n $ %s pipe-no-fork 3 4\n\n"),
                program_invocation_short_name);
 
        exit(status);