diff --git a/usr.sbin/pw/pw_group.c b/usr.sbin/pw/pw_group.c index 289a4c85df70..834160fd5191 100644 --- a/usr.sbin/pw/pw_group.c +++ b/usr.sbin/pw/pw_group.c @@ -261,7 +261,7 @@ pw_group_next(int argc, char **argv, char *arg1 __unused) int ch; bool quiet = false; - while ((ch = getopt(argc, argv, "Cq")) != -1) { + while ((ch = getopt(argc, argv, "C:q")) != -1) { switch (ch) { case 'C': cfg = optarg; diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 5ad1409f48b6..67186c3dc033 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -742,7 +742,7 @@ pw_user_next(int argc, char **argv, char *name __unused) bool quiet = false; uid_t next; - while ((ch = getopt(argc, argv, "Cq")) != -1) { + while ((ch = getopt(argc, argv, "C:q")) != -1) { switch (ch) { case 'C': cfg = optarg;