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 <vogel@users.sourceforge.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Robert Vogelgesang 2014-01-30 16:18:50 +01:00 committed by Stéphane Graber
parent 1d1774b1ac
commit 6ee257941c

View 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
};