Skip to content

command-line arguments #1909

Answered by triska
mvolkmann asked this question in Q&A
Jul 24, 2023 · 6 comments · 18 replies
Discussion options

You must be logged in to vote

You can access them with argv/1 from the module '$toplevel'. Example:

$ scryer-prolog -- test
?- '$toplevel':argv(As).
   As = ["test"].

Replies: 6 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mvolkmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@triska
Comment options

@mvolkmann
Comment options

@mthom
Comment options

Comment options

You must be logged in to vote
12 replies
@i-am-neo
Comment options

@aarroyoc
Comment options

@bakaq
Comment options

@i-am-neo
Comment options

@triska
Comment options

Comment options

You must be logged in to vote
2 replies
@pmoura
Comment options

@aarroyoc
Comment options

Comment options

You must be logged in to vote
1 reply
@bakaq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants