2 -- { dg-options "-O2" }
4 with Ada
.Command_Line
; use Ada
.Command_Line
;
8 procedure Check_Version_And_Help
(Version_String
: String) is
9 Help_Switch_Present
: Boolean := False;
10 Next_Arg
: Natural := 1;
12 while Next_Arg
<= Argument_Count
loop
14 Next_Argv
: constant String := Argument
(Next_Arg
);
16 if Next_Argv
= "--help" then
17 Help_Switch_Present
:= True;
19 Next_Arg
:= Next_Arg
+ 1;
23 if Help_Switch_Present
then
29 Check_Version_And_Help
("version");