Skip to content

Commit

Permalink
Add command line option --bare
Browse files Browse the repository at this point in the history
Allowing to start GAP without any packages
  • Loading branch information
Markus Pfeiffer committed Oct 29, 2018
1 parent ccbda3c commit f1de3c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/system.g
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ BIND_GLOBAL( "GAPInfo", rec(
help := [ "Disable the GAP read-evaluate-print loop (REPL)" ] ),
rec( long := "nointeract", default := false,
help := [ "Start GAP in non-interactive mode (disable read-evaluate-print loop (REPL) and break loop)" ] ),
rec( long := "bare", default := false,
help := [ "Start GAP without loading any packages" ] ),
,
rec( short:= "c", default := "", arg := "<expr>", help := [ "execute the given expression"] ),
],
Expand Down Expand Up @@ -393,6 +395,11 @@ CallAndInstallPostRestore( function()
CommandLineOptions.norepl := true;
fi;

if CommandLineOptions.bare then
CommandLineOptions.A := true;
GAPInfo.Dependencies := MakeImmutable(rec( NeededOtherPackages := [] ));
fi;

MakeImmutable( CommandLineOptions );
MakeImmutable( InitFiles );

Expand Down

0 comments on commit f1de3c2

Please sign in to comment.