summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index f0991fe..1cebd39 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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)