(parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks Mike Frysinger <vapier@gentoo.org> for reporting.

This commit is contained in:
Sergey Poznyakoff
2005-01-05 17:30:36 +00:00
parent af2fa08aa0
commit 2ad41b6fe0

View File

@@ -617,9 +617,9 @@ parse_opt(int key, char *arg, struct argp_state *state)
switch (key)
{
case 1:
case ARGP_KEY_ARG:
/* File name or non-parsed option, because of ARGP_IN_ORDER */
name_add (optarg);
name_add (arg);
args->input_files++;
break;