[PATCH] Fix bug in argument parsing.

Thadeu Lima de Souza Cascardo cascardo en cascardo.info
Lun Mar 24 22:46:47 UTC 2014


On Fri, Mar 21, 2014 at 01:26:55AM -0300, Sergio Durigan Junior wrote:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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 },
>  
> -- 
> 1.8.1.4
> 
> 
> -- 
> Sergio

Aplicado.


Más información sobre la lista de distribución Softwares-impostos