]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:16:40 +0000 (13:16 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:16:40 +0000 (13:16 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.c

index 7a68e2cbbb8ff92901d52b6fabde795e049a8b8e..b11919d96eca0ac4b4cfdb06e7aaaf2062f0f63f 100644 (file)
@@ -54,17 +54,18 @@ static void usage(int status)
 {
        FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
 
-       fprintf(out, _("Usage: %s [options] <program> [args...]\n"),
-               program_invocation_short_name);
-
-       fputs(_("Run program with some namespaces unshared from parent\n\n"
-               "  -h, --help        usage information (this)\n"
-               "  -m, --mount       unshare mounts namespace\n"
-               "  -u, --uts         unshare UTS namespace (hostname etc)\n"
-               "  -i, --ipc         unshare System V IPC namespace\n"
-               "  -n, --net         unshare network namespace\n"), out);
-
-       fprintf(out, _("\nFor more information see unshare(1).\n"));
+       fputs(_("\nUsage:\n"), out);
+       fprintf(out,
+             _(" %s [options] <program> [args...]\n"), program_invocation_short_name);
+
+       fputs(_("\nOptions:\n"), out);
+       fputs(_(" -h, --help        usage information (this)\n"
+               " -m, --mount       unshare mounts namespace\n"
+               " -u, --uts         unshare UTS namespace (hostname etc)\n"
+               " -i, --ipc         unshare System V IPC namespace\n"
+               " -n, --net         unshare network namespace\n"), out);
+
+       fputs(_("\nFor more information see unshare(1).\n"), out);
        exit(status);
 }