mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Do not always print dashes in obsolete_option.
* g10/gpg.c (main): Pass option names to obsolete_option without double dash. * g10/misc.c (obsolete_option, obsolete_scdaemon_option): Print double dash only for command line options.
This commit is contained in:
parent
371c2b14b0
commit
20c6da50d4
2 changed files with 15 additions and 19 deletions
|
@ -1038,8 +1038,8 @@ obsolete_option (const char *configname, unsigned int configlineno,
|
|||
log_info (_("%s:%u: obsolete option \"%s\" - it has no effect\n"),
|
||||
configname, configlineno, name);
|
||||
else
|
||||
log_info (_("WARNING: \"%s\" is an obsolete option - it has no effect\n"),
|
||||
name);
|
||||
log_info (_("WARNING: \"%s%s\" is an obsolete option - it has no effect\n"),
|
||||
"--", name);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1052,8 +1052,9 @@ obsolete_scdaemon_option (const char *configname, unsigned int configlineno,
|
|||
" - it only has effect in %s\n"),
|
||||
configname, configlineno, name, SCDAEMON_NAME EXTSEP_S "conf");
|
||||
else
|
||||
log_info (_("WARNING: \"%s\" is an obsolete option"
|
||||
" - it has no effect except on %s\n"), name, SCDAEMON_NAME);
|
||||
log_info (_("WARNING: \"%s%s\" is an obsolete option"
|
||||
" - it has no effect except on %s\n"),
|
||||
"--", name, SCDAEMON_NAME);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue