[PATCH] blockdev: reduce usage text width

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use spaces in usage text instead of tabs and reduce the distance between
option names and descriptions.

This helps to minimize problems due to limited number of columns and
translated texts which take up more space than English.

Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx>
---
 disk-utils/blockdev.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c
index 288c102..eeaf2f5 100644
--- a/disk-utils/blockdev.c
+++ b/disk-utils/blockdev.c
@@ -183,15 +183,15 @@ usage(void) {
 	fputc('\n', stderr);
 
 	fprintf(stderr, _("Available commands:\n"));
-	fprintf(stderr, "\t%-30s %s\n", "--getsz",
+	fprintf(stderr, "  %-25s %s\n", "--getsz",
 			_("get size in 512-byte sectors"));
 	for (i = 0; i < ARRAY_SIZE(bdcms); i++) {
 		if (bdcms[i].argname)
-			fprintf(stderr, "\t%s %-*s %s\n", bdcms[i].name,
-					(int) (29 - strlen(bdcms[i].name)),
+			fprintf(stderr, "  %s %-*s %s\n", bdcms[i].name,
+					(int) (24 - strlen(bdcms[i].name)),
 					bdcms[i].argname, _(bdcms[i].help));
 		else
-			fprintf(stderr, "\t%-30s %s\n", bdcms[i].name,
+			fprintf(stderr, "  %-25s %s\n", bdcms[i].name,
 					_(bdcms[i].help));
 	}
 	fputc('\n', stderr);
-- 
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux