From: Mike Frysinger Date: Sun, 19 Nov 2017 04:06:20 +0000 (-0500) Subject: vunshare: add docs X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=89f2cda5ecf736153ee7904480c13bb89526c610;p=home.git vunshare: add docs --- diff --git a/vunshare.c b/vunshare.c index 2e7efbb..85801fc 100644 --- a/vunshare.c +++ b/vunshare.c @@ -4,7 +4,6 @@ */ /* TODO: - * - Add userns support. * - Make pidns init optional. * - Make setproctitle nicer and include program argv[0]. * - Set up prctl(PR_SET_PDEATHSIG). @@ -288,7 +287,18 @@ static const struct option opts[] = { static void usage(void) { - puts("Usage: unshare [options] "); + puts( + "Usage: unshare [options] \n" + "\n" + "Options: [DimnpuU]\n" + " -i Use IPC namespaces\n" + " -m Use mount namespaces\n" + " -n Use net namespaces\n" + " -p Use pid namespaces\n" + " -u Use UTS namespaces\n" + " -U Use user namespaces\n" + " -D Daemonize program" + ); exit(EX_USAGE); }