dirname: Fix help message

This commit is contained in:
2026-05-15 22:34:48 +03:00
parent 4ef7b8e71c
commit 928d3e3fe7

View File

@@ -23,14 +23,11 @@ int main(int argc, char* argv[])
zero = true;
break;
case 'h':
fprintf(stderr, "usage: %s [OPTIONS]...\n", argv[0]);
fprintf(stderr, " control the audio server\n");
fprintf(stderr, "usage: %s [OPTION] NAME...\n", argv[0]);
fprintf(stderr, " output the directory containing each NAME\n");
fprintf(stderr, "OPTIONS:\n");
fprintf(stderr, " -l, --list list devices and their pins\n");
fprintf(stderr, " -d, --device N set device index N as the current one\n");
fprintf(stderr, " -p, --pin N set pin N as the current one\n");
fprintf(stderr, " -v, --volume N set volume to N%%. if + or - is given, volume is relative to the current volume\n");
fprintf(stderr, " -h, --help show this message and exit\n");
fprintf(stderr, " -z, --zero end each output with NUL instead of a newline\n");
fprintf(stderr, " -h, --help show this message and exit\n");
return 0;
case '?':
fprintf(stderr, "invalid option %c\n", optopt);