[PATCH 02/11] ipcrm: in usage text, use two lines when option+arguments is very long

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
Also, do not use tabs in the usage text, and keep it within 80 columns.

Signed-off-by: Benno Schulenberg <[email protected]>
---
 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 <id>        				remove shared memory segment by id\n"), out);
-	fputs(_(" -M, --shmem-key <key>      				remove shared memory segment by key\n"), out);
-	fputs(_("     --posix-shmem <name>   				remove POSIX shared memory segment by name\n"), out);
-	fputs(_(" -q, --queue-id <id>        				remove message queue by id\n"), out);
-	fputs(_(" -Q, --queue-key <key>      				remove message queue by key\n"), out);
-	fputs(_("     --posix-mqueue <name>  				remove POSIX message queue by name\n"), out);
-	fputs(_(" -s, --semaphore-id <id>    				remove semaphore by id\n"), out);
-	fputs(_(" -S, --semaphore-key <key>  				remove semaphore by key\n"), out);
-	fputs(_("     --posix-semaphore <name> 				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 <id>           remove shared memory segment by id\n"), out);
+	fputs(_(" -M, --shmem-key <key>         remove shared memory segment by key\n"), out);
+	fputs(_("     --posix-shmem <name>      remove POSIX shared memory segment by name\n"), out);
+	fputs(_(" -q, --queue-id <id>           remove message queue by id\n"), out);
+	fputs(_(" -Q, --queue-key <key>         remove message queue by key\n"), out);
+	fputs(_("     --posix-mqueue <name>     remove POSIX message queue by name\n"), out);
+	fputs(_(" -s, --semaphore-id <id>       remove semaphore by id\n"), out);
+	fputs(_(" -S, --semaphore-key <key>     remove semaphore by key\n"), out);
+	fputs(_("     --posix-semaphore <name>  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.48.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.