From d63e3528785ff4084563dd1dbcfd73e3b1db2bf8 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Tue, 19 May 2020 13:03:12 +0200 Subject: [PATCH] Improve help layout (#418) This change moves the explanation of switches a few columns to the left. --- src/alr/alr-commands.adb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/alr/alr-commands.adb b/src/alr/alr-commands.adb index ec0b78fb..81fe122a 100644 --- a/src/alr/alr-commands.adb +++ b/src/alr/alr-commands.adb @@ -291,11 +291,16 @@ package body Alr.Commands is Define_Switch (Config, " "); end if; - Define_Switch (Config, "See global options with 'alr --help'", - "", "", "", ""); + -- Without the following line, GNAT.Display_Help causes a segfault for + -- reasons I'm unable to pinpoint. This way it prints a harmless blank + -- line that we want anyway. + + Define_Switch (Config, " ", " ", " ", " ", " "); GNAT.Command_Line.Display_Help (Config); + Put_Line (" See global options with 'alr --help'"); + -- Format and print the long command description New_Line; Put_Line ("DESCRIPTION"); -- 2.39.5