Commit 4072e2d2 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

compel: remove unneeded argc check

Checks for a number of arguments are to be done after option parsing.

With this patch, compel -V now works.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b8474f29
......@@ -137,9 +137,6 @@ int main(int argc, char *argv[])
{ },
};
if (argc < 3)
goto usage;
while (1) {
idx = -1;
opt = getopt_long(argc, argv, short_opts, long_opts, &idx);
......
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