Skip to content

Commit

Permalink
simplify os:argv/1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Skgland committed Jan 4, 2024
1 parent ea0130d commit 78b83ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/os.pl
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@
argv(Argv) :-
can_be(list, Argv),
'$argv'(Argv0),
( member("--", Argv0) ->
once(append(Argv1, ["--"|Argv], Argv0)),
\+ member("--", Argv1)
( append(_, ["--"|Argv1], Argv0) ->
Argv = Argv1
;
Argv = []
).

0 comments on commit 78b83ca

Please sign in to comment.