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'.
/* Description and definition of each option accepted by the program. */
static const struct argp_option rnetclient_options_desc[] = {
/* 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 },
"The Income Tax Report file that will be sent.",
0 },