diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2021-10-16 08:39:18 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2021-10-16 08:40:37 +0000 |
commit | aa92785a5b76e02f3a9b95a2a90e73760f78698c (patch) | |
tree | 6cb6348c2b8fb86efe42a8339cba6bfcf7e71f63 | |
parent | 899a3b38f5172d70360396caeebb5b694638282e (diff) | |
download | src-aa92785a5b76e02f3a9b95a2a90e73760f78698c.tar.gz src-aa92785a5b76e02f3a9b95a2a90e73760f78698c.zip |
mixer(8): Add -h option to show usage.
Differential Revision: https://reviews.freebsd.org/D32508
Submitted by: christos@
Sponsored by: NVIDIA Networking
-rw-r--r-- | usr.sbin/mixer/mixer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index ba13291f7b36..b95b7502f3f4 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -65,7 +65,7 @@ main(int argc, char *argv[]) int aflag = 0, dflag = 0, oflag = 0, sflag = 0; int ch; - while ((ch = getopt(argc, argv, "ad:f:os")) != -1) { + while ((ch = getopt(argc, argv, "ad:f:hos")) != -1) { switch (ch) { case 'a': aflag = 1; @@ -85,6 +85,7 @@ main(int argc, char *argv[]) case 's': sflag = 1; break; + case 'h': /* FALLTROUGH */ case '?': default: usage(); @@ -175,7 +176,8 @@ static void __dead2 usage(void) { fprintf(stderr, "usage: %1$s [-f device] [-d unit] [-os] [dev[.control[=value]]] ...\n" - " %1$s [-d unit] [-os] -a\n", getprogname()); + " %1$s [-d unit] [-os] -a\n" + " %1$s -h\n", getprogname()); exit(1); } |