Commit 7ecf297d authored by Pavel Emelyanov's avatar Pavel Emelyanov

cli: Remove the --namespace option

This thing was used in the ancient days when we didn't have /proc/pid/ns files
as links. The only used of it (images w/o the ids.img file) has been already
removed in 2.1, so probably it's time to drop the option itself.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 3a7b5e22
...@@ -189,7 +189,7 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -189,7 +189,7 @@ int main(int argc, char *argv[], char *envp[])
int log_level = LOG_UNSET; int log_level = LOG_UNSET;
char *imgs_dir = "."; char *imgs_dir = ".";
char *work_dir = NULL; char *work_dir = NULL;
static const char short_opts[] = "dSsRf:F:t:p:hcD:o:n:v::x::Vr:jlW:L:M:"; static const char short_opts[] = "dSsRf:F:t:p:hcD:o:v::x::Vr:jlW:L:M:";
static struct option long_opts[] = { static struct option long_opts[] = {
{ "tree", required_argument, 0, 't' }, { "tree", required_argument, 0, 't' },
{ "pid", required_argument, 0, 'p' }, { "pid", required_argument, 0, 'p' },
...@@ -204,7 +204,6 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -204,7 +204,6 @@ int main(int argc, char *argv[], char *envp[])
{ "images-dir", required_argument, 0, 'D' }, { "images-dir", required_argument, 0, 'D' },
{ "work-dir", required_argument, 0, 'W' }, { "work-dir", required_argument, 0, 'W' },
{ "log-file", required_argument, 0, 'o' }, { "log-file", required_argument, 0, 'o' },
{ "namespaces", required_argument, 0, 'n' },
{ "root", required_argument, 0, 'r' }, { "root", required_argument, 0, 'r' },
{ USK_EXT_PARAM, optional_argument, 0, 'x' }, { USK_EXT_PARAM, optional_argument, 0, 'x' },
{ "help", no_argument, 0, 'h' }, { "help", no_argument, 0, 'h' },
...@@ -336,9 +335,6 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -336,9 +335,6 @@ int main(int argc, char *argv[], char *envp[])
case 'o': case 'o':
opts.output = optarg; opts.output = optarg;
break; break;
case 'n':
pr_warn("The -n|--namespaces option has no effect and will soon be removed.\n");
break;
case 'v': case 'v':
if (log_level == LOG_UNSET) if (log_level == LOG_UNSET)
log_level = 0; log_level = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment