projects
/
cascardo
/
rnetclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fb693
)
Fix bug in argument parsing.
author
Sergio Durigan Junior
<sergiodj@sergiodj.net>
Fri, 21 Mar 2014 04:26:55 +0000
(
01:26
-0300)
committer
Thadeu Lima de Souza Cascardo
<cascardo@cascardo.info>
Mon, 24 Mar 2014 22:46:14 +0000
(19:46 -0300)
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'.
rnetclient.c
patch
|
blob
|
history
diff --git
a/rnetclient.c
b/rnetclient.c
index
22a9eb3
..
181ac2f
100644
(file)
--- 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 },