From 89f2cda5ecf736153ee7904480c13bb89526c610 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 18 Nov 2017 23:06:20 -0500 Subject: [PATCH] vunshare: add docs --- vunshare.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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); } -- 2.39.2