From: Sergio Durigan Junior Date: Fri, 21 Mar 2014 04:26:55 +0000 (-0300) Subject: Fix bug in argument parsing. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flibreceita.git;a=commitdiff_plain;h=e65bbb776b2cc8a7b354e2b7ac16bb5fc19f8eda Fix bug in argument parsing. The argument '-d' is marked as having an optional argument to it, which is wrong, because it is mandatory to provide the filename when you use '-d'. --- diff --git a/rnetclient.c b/rnetclient.c index 22a9eb3..181ac2f 100644 --- a/rnetclient.c +++ b/rnetclient.c @@ -51,7 +51,7 @@ static const char rnetclient_args_doc[] = /* Description and definition of each option accepted by the program. */ static const struct argp_option rnetclient_options_desc[] = { - { "declaration", 'd', "FILE", OPTION_ARG_OPTIONAL, + { "declaration", 'd', "FILE", 0, "The Income Tax Report file that will be sent.", 0 },