Skip to content

Commit bedd877

Browse files
authored
GAP banner: split ShowPackageInformation into two functions (#6193)
The function `ShowPackageInformation` prints part of the GAP banner. Up to now, it prints an overview of the loaded packages and then a line about GAP's interactive help system. The proposed change separates the two parts, the last line is printed by the new function `ShowHelpInformation`.
1 parent 7e76a45 commit bedd877

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/init.g

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,11 +815,13 @@ BindGlobal( "ShowPackageInformation", function()
815815
GAPInfo.PackagesLoaded.( name )[2] ) ),
816816
"\n" );
817817
fi;
818+
end );
818819

820+
BindGlobal( "ShowHelpInformation", function()
819821
Print( " Try '??help' for help. See also '?copyright', '?cite' and '?authors'",
820822
"\n" );
821823
end );
822-
#T show also root paths?
824+
823825

824826
CallAndInstallPostRestore( function()
825827
if not ( GAPInfo.CommandLineOptions.q or
@@ -828,12 +830,14 @@ CallAndInstallPostRestore( function()
828830
ShowKernelInformation();
829831
fi;
830832
ShowPackageInformation();
833+
ShowHelpInformation();
831834
fi;
832835
end );
833836

834837
BindGlobal ("ShowSystemInformation", function ()
835838
ShowKernelInformation();
836839
ShowPackageInformation();
840+
ShowHelpInformation();
837841
end );
838842

839843

0 commit comments

Comments
 (0)