mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Distinguish between ARGPARSE_AMBIGUOUS_{OPTION,COMMAND}
* common/argparse.c (initialize): Use correct value. -- This avoids a dead path in the argparse code. It's not clear that this is needed, however, since ARGPARSE_AMBIGUOUS_COMMAND is never actually used in the code. Another approach would be to trim out ARGPARSE_AMBIGUOUS_COMMAND entirely.
This commit is contained in:
parent
a3cf781e3b
commit
eed16ccebf
@ -290,7 +290,7 @@ initialize( ARGPARSE_ARGS *arg, const char *filename, unsigned *lineno )
|
||||
jnlib_log_error (_("invalid command \"%.50s\"\n"), s);
|
||||
else if ( arg->r_opt == ARGPARSE_AMBIGUOUS_OPTION )
|
||||
jnlib_log_error (_("option \"%.50s\" is ambiguous\n"), s);
|
||||
else if ( arg->r_opt == ARGPARSE_AMBIGUOUS_OPTION )
|
||||
else if ( arg->r_opt == ARGPARSE_AMBIGUOUS_COMMAND )
|
||||
jnlib_log_error (_("command \"%.50s\" is ambiguous\n"),s );
|
||||
else if ( arg->r_opt == ARGPARSE_OUT_OF_CORE )
|
||||
jnlib_log_error ("%s\n", _("out of core\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user