Merge pull request #2263 from aarroyoc/docs-toplevel

Move argv/1 to library(os)
This commit is contained in:
Mark Thom
2024-01-02 09:19:10 -07:00
committed by GitHub
8 changed files with 79 additions and 43 deletions

View File

@@ -138,7 +138,7 @@ file_load_cleanup(Evacuable, Error) :-
load_context(Module),
abolish(Module:'$initialization_goals'/1),
unload_evacuable(Evacuable),
( clause('$toplevel':argv(_), _) ->
( clause('$toplevel':started, _) ->
% let the toplevel call loader:write_error/1
throw(Error)
; '$print_message_and_fail'(Error)