From 3d9573b98196ab34bc45e862d7700109015e6603 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 25 Mar 2025 11:42:56 +0100 Subject: [PATCH] ipcrm: in usage text, use two lines when option+arguments is very long Also, do not use tabs in the usage text, and keep it within 80 columns. Signed-off-by: Benno Schulenberg --- sys-utils/ipcrm.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index ceb101187..8ddb104f4 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -56,17 +56,18 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Remove certain IPC resources.\n"), out); fputs(USAGE_OPTIONS, out); - fputs(_(" -m, --shmem-id remove shared memory segment by id\n"), out); - fputs(_(" -M, --shmem-key remove shared memory segment by key\n"), out); - fputs(_(" --posix-shmem remove POSIX shared memory segment by name\n"), out); - fputs(_(" -q, --queue-id remove message queue by id\n"), out); - fputs(_(" -Q, --queue-key remove message queue by key\n"), out); - fputs(_(" --posix-mqueue remove POSIX message queue by name\n"), out); - fputs(_(" -s, --semaphore-id remove semaphore by id\n"), out); - fputs(_(" -S, --semaphore-key remove semaphore by key\n"), out); - fputs(_(" --posix-semaphore remove POSIX semaphore by name\n"), out); - fputs(_(" -a, --all[=shm|pshm|msg|pmsg|sem|psem] remove all (in the specified category)\n"), out); - fputs(_(" -v, --verbose explain what is being done\n"), out); + fputs(_(" -m, --shmem-id remove shared memory segment by id\n"), out); + fputs(_(" -M, --shmem-key remove shared memory segment by key\n"), out); + fputs(_(" --posix-shmem remove POSIX shared memory segment by name\n"), out); + fputs(_(" -q, --queue-id remove message queue by id\n"), out); + fputs(_(" -Q, --queue-key remove message queue by key\n"), out); + fputs(_(" --posix-mqueue remove POSIX message queue by name\n"), out); + fputs(_(" -s, --semaphore-id remove semaphore by id\n"), out); + fputs(_(" -S, --semaphore-key remove semaphore by key\n"), out); + fputs(_(" --posix-semaphore remove POSIX semaphore by name\n"), out); + fputs(_(" -a, --all[=shm|pshm|msg|pmsg|sem|psem]\n" + " remove all (in the specified category)\n"), out); + fputs(_(" -v, --verbose explain what is being done\n"), out); fputs(USAGE_SEPARATOR, out); fprintf(out, USAGE_HELP_OPTIONS(28)); -- 2.47.3