diff options
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -136,6 +136,19 @@ void authz_opt_reset(void) opterr = 0; } +// The two complaints every getopt_long loop otherwise writes by hand. Neither +// returns anything: the caller knows whether its own failure is 64 or -1. + +void authz_opt_need_value(const struct option *lo) +{ + fprintf(stderr, "%s: --%s wants a value\n", progname, authz_optname(optopt, lo)); +} + +void authz_opt_unknown(const char *cmd, const char *arg) +{ + fprintf(stderr, "%s: %s: unknown argument %s\n", progname, cmd, arg); +} + // ----------------------------------------------------------------- lines void lines_init(lines_t *l) |
