@@ -13,8 +13,7 @@ with GNAT.Directory_Operations; use GNAT.Directory_Operations;
1313with GNAT.OS_Lib ; use GNAT.OS_Lib;
1414with GNAT.Traceback.Symbolic ;
1515
16- with Gnatcheck.Options ; use Gnatcheck.Options;
17- with Gnatcheck.String_Utilities ; use Gnatcheck.String_Utilities;
16+ with Gnatcheck.Options ; use Gnatcheck.Options;
1817
1918with Interfaces.C_Streams ; use Interfaces.C_Streams;
2019
@@ -250,39 +249,15 @@ package body Gnatcheck.Output is
250249 Emit_Message (Message, New_Line => New_Line, Log_Message => Log_Message);
251250 end Print ;
252251
253- -- ----------------------
254- -- Print_Tool_Version --
255- -- ----------------------
256-
257- procedure Print_Tool_Version (Released_At : Positive) is
258- begin
259- if Gnatkp_Mode then
260- Put_Line (" GNATKP " & Date);
261- else
262- Put_Line (" GNATCHECK " & Version_String);
263- end if ;
264-
265- Put_Line
266- (" Copyright (C) "
267- & Image (Released_At)
268- & ' -'
269- & Current_Year
270- & " , AdaCore." );
271- end Print_Tool_Version ;
272-
273252 -- ----------------------
274253 -- Print_Version_Info --
275254 -- ----------------------
276255
277- procedure Print_Version_Info (Released_At : Positive) is
256+ procedure Print_Version_Info is
278257 begin
279- Print (Executable & " " & Version_String, Log_Message => False );
258+ Print (Executable & " " & Version_String);
280259 Print
281- (" Copyright "
282- & Image (Released_At)
283- & ' -'
284- & Current_Year
285- & " , AdaCore." ,
260+ (" Copyright (C) " & " 2004" & ' -' & Current_Year & " , AdaCore." ,
286261 Log_Message => False);
287262 end Print_Version_Info ;
288263
@@ -462,7 +437,7 @@ package body Gnatcheck.Output is
462437 Put_Line
463438 (" usage: gnatkp -Pproject [options] [-rules [-from=file] {+Rkp_id[:param]}]" );
464439 Put_Line (" options:" );
465- Put_Line (" --version - Display version and exit" );
440+ Put_Line (" -V, - -version - Display version and exit" );
466441 Put_Line (" -h, --help - Display usage and exit" );
467442 Put_Line (" " );
468443 Put_Line
@@ -529,7 +504,7 @@ package body Gnatcheck.Output is
529504 Put_Line
530505 (" usage: gnatcheck [options] {filename} {-files=filename} -rules rule_switches [-cargs gcc_switches]" );
531506 Put_Line (" options:" );
532- Put_Line (" --version - Display version and exit" );
507+ Put_Line (" -V, - -version - Display version and exit" );
533508 Put_Line (" -h, --help - Display usage and exit" );
534509 Put_Line (" " );
535510 Put_Line
0 commit comments