From 0f582c6b88f8f8ddc419c7f9186195830ea88bec Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 2 Apr 2008 01:27:09 +0000 Subject: [PATCH] 2008-04-01 Pavel Roskin * normal/arg.c (grub_arg_show_help): Fix spacing of the long options to align them with the short options, e.g. "echo -e". --- ChangeLog | 5 +++++ normal/arg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cbe7f0cf4..ddfe4af23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-01 Pavel Roskin + + * normal/arg.c (grub_arg_show_help): Fix spacing of the long + options to align them with the short options, e.g. "echo -e". + 2008-03-31 Bean * video/reader/png.c (grub_png_data): New member is_16bit and diff --git a/normal/arg.c b/normal/arg.c index 3aa6a0331..bf5522928 100644 --- a/normal/arg.c +++ b/normal/arg.c @@ -147,7 +147,7 @@ grub_arg_show_help (grub_command_t cmd) if (opt->longarg) { grub_printf ("--%s", opt->longarg); - spacing -= grub_strlen (opt->longarg); + spacing -= grub_strlen (opt->longarg) + 2; if (opt->arg) {