summaryrefslogtreecommitdiffstats
path: root/sys-utils/unshare.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:16:40 +0200
committerKarel Zak2011-08-16 13:16:40 +0200
commit3cf01b94d4ec50d40db442fc5f0ae3cbbe3dc83a (patch)
tree9eab9c2ac160f2fc86736d54c45aff0eda2d26f7 /sys-utils/unshare.c
parentfstrim: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-3cf01b94d4ec50d40db442fc5f0ae3cbbe3dc83a.tar.gz
kernel-qcow2-util-linux-3cf01b94d4ec50d40db442fc5f0ae3cbbe3dc83a.tar.xz
kernel-qcow2-util-linux-3cf01b94d4ec50d40db442fc5f0ae3cbbe3dc83a.zip
unshare: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/unshare.c')
-rw-r--r--sys-utils/unshare.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c
index 7a68e2cbb..b11919d96 100644
--- a/sys-utils/unshare.c
+++ b/sys-utils/unshare.c
@@ -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);
}