From: Robert Vogelgesang Date: Thu, 30 Jan 2014 15:18:50 +0000 (+0100) Subject: Fix lxc-stop's argument parsing X-Git-Tag: lxc-1.0.0.beta4~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee257941cb985e12a097bc83d551fa323d8aad2;p=thirdparty%2Flxc.git Fix lxc-stop's argument parsing 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 Acked-by: Stéphane Graber --- diff --git a/src/lxc/lxc_stop.c b/src/lxc/lxc_stop.c index dc4133f5b..d8de2b01e 100644 --- a/src/lxc/lxc_stop.c +++ b/src/lxc/lxc_stop.c @@ -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 };