55
55
FILE *out = status == EXIT_SUCCESS ? stdout : stderr;
57
fprintf(out, _("Usage: %s [options] <program> [args...]\n"),
58
program_invocation_short_name);
60
fputs(_("Run program with some namespaces unshared from parent\n\n"
61
" -h, --help usage information (this)\n"
62
" -m, --mount unshare mounts namespace\n"
63
" -u, --uts unshare UTS namespace (hostname etc)\n"
64
" -i, --ipc unshare System V IPC namespace\n"
65
" -n, --net unshare network namespace\n"), out);
67
fprintf(out, _("\nFor more information see unshare(1).\n"));
57
fputs(_("\nUsage:\n"), out);
59
_(" %s [options] <program> [args...]\n"), program_invocation_short_name);
61
fputs(_("\nOptions:\n"), out);
62
fputs(_(" -h, --help usage information (this)\n"
63
" -m, --mount unshare mounts namespace\n"
64
" -u, --uts unshare UTS namespace (hostname etc)\n"
65
" -i, --ipc unshare System V IPC namespace\n"
66
" -n, --net unshare network namespace\n"), out);
68
fputs(_("\nFor more information see unshare(1).\n"), out);
71
72
int main(int argc, char *argv[])
73
struct option longopts[] = {
74
static const struct option longopts[] = {
74
75
{ "help", no_argument, 0, 'h' },
75
76
{ "mount", no_argument, 0, 'm' },
76
77
{ "uts", no_argument, 0, 'u' },