Is there a standard function in prolog to get the arguments the compiled prolog executable was called with? get_arguments/0
or something like that? If there is no standard, is there at least a way to do that in swi-prolog?
Asked
Active
Viewed 164 times
0

tolUene
- 572
- 3
- 18
-
http://stackoverflow.com/questions/10365340/command-line-argument-vectors-in-prolog?rq=1 – Randy Howard Mar 30 '13 at 15:10
-
@RandyHoward that does not work with compiled prolog programs though – tolUene Mar 30 '13 at 15:21
-
3try `current_prolog_flag(argv, Argv), append(_, [--|Args], Argv), `. as seen here: http://www.swi-prolog.org/pldoc/doc_for?object=section(2,'2.10',swi('/doc/Manual/compilation.html')) – Will Ness Mar 30 '13 at 16:20