diff options
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r-- | tools/gpgconf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c index cff6e4b3c..a2bba180c 100644 --- a/tools/gpgconf.c +++ b/tools/gpgconf.c @@ -195,6 +195,16 @@ main (int argc, char **argv) if (log_get_errorcount (0)) exit (2); + /* Print a warning if an argument looks like an option. */ + if (!opt.quiet && !(pargs.flags & ARGPARSE_FLAG_STOP_SEEN)) + { + int i; + + for (i=0; i < argc; i++) + if (argv[i][0] == '-' && argv[i][1] == '-') + log_info (_("NOTE: `%s' is not considered an option\n"), argv[i]); + } + fname = argc ? *argv : NULL; switch (cmd) |