[lxc-devel] [PATCH] Fix lxc-stop's argument parsing
Robert Vogelgesang
vogel at users.sourceforge.net
Thu Jan 30 15:18:50 UTC 2014
Change lxc-stop's argument parsing so that it matches what the help option
and the man page both describe.
Signed-off-by: Robert Vogelgesang <vogel at users.sourceforge.net>
diff -up lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c.fix_noargs lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c
--- lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c.fix_noargs 2014-01-27 14:52:20.000000000 +0100
+++ lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c 2014-01-30 15:42:56.772582318 +0100
@@ -54,8 +54,8 @@ static const struct option my_longopts[]
{"nowait", no_argument, 0, 'W'},
{"timeout", required_argument, 0, 't'},
{"kill", no_argument, 0, 'k'},
- {"no-kill", no_argument, 0, OPT_NO_KILL},
- {"no-lock", no_argument, 0, OPT_NO_LOCK},
+ {"nokill", no_argument, 0, OPT_NO_KILL},
+ {"nolock", no_argument, 0, OPT_NO_LOCK},
LXC_COMMON_OPTIONS
};
More information about the lxc-devel
mailing list