From 928d3e3fe7ef06da1b2f3157011d17fdc4876f26 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 15 May 2026 22:34:48 +0300 Subject: [PATCH] dirname: Fix help message --- userspace/programs/dirname/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/userspace/programs/dirname/main.cpp b/userspace/programs/dirname/main.cpp index a174da63..65f6175a 100644 --- a/userspace/programs/dirname/main.cpp +++ b/userspace/programs/dirname/main.cpp @@ -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);