]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix lxc-stop's argument parsing
authorRobert Vogelgesang <vogel@users.sourceforge.net>
Thu, 30 Jan 2014 15:18:50 +0000 (16:18 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 31 Jan 2014 09:38:26 +0000 (09:38 +0000)
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@users.sourceforge.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_stop.c

index dc4133f5bfd2b3e4b00388baf7a0e50eca13392f..d8de2b01ee7bae32da9c0847e159b1861d09deee 100644 (file)
@@ -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
 };