Commit d715f176 authored by Radostin Stoyanov's avatar Radostin Stoyanov Committed by Andrei Vagin

config: Fix -R option

The '-R' is short for '--leave-running', which is a boolean option and
does not require an argument.

From getopt(3) man page:

optstring is a string containing the legitimate option characters. If
such a character is followed by a colon, the option requires an
argument, ...
Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
parent c292fe54
......@@ -436,7 +436,7 @@ int parse_options(int argc, char **argv, bool *usage_error,
{OPT_NAME, no_argument, SAVE_TO, true},\
{"no-" OPT_NAME, no_argument, SAVE_TO, false}
static const char short_opts[] = "dSsR:t:hD:o:v::x::Vr:jJ:lW:L:M:";
static const char short_opts[] = "dSsRt:hD:o:v::x::Vr:jJ:lW:L:M:";
static struct option long_opts[] = {
{ "tree", required_argument, 0, 't' },
{ "leave-stopped", no_argument, 0, 's' },
......
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