Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a Command Line Interface (CLI) ? #446

Open
Jean-Luc-Picard-2021 opened this issue Dec 6, 2023 · 0 comments
Open

Is there a Command Line Interface (CLI) ? #446

Jean-Luc-Picard-2021 opened this issue Dec 6, 2023 · 0 comments

Comments

@Jean-Luc-Picard-2021
Copy link

Jean-Luc-Picard-2021 commented Dec 6, 2023

The following question, whether there is a swipl.js that provides
a command line interface (CLI) has not yet been resolved. node is
the nodeJS interpreter, and swipl.js is the SWI-Prolog CLI driver:

node swipl.js <Prolog Text> <Argument1> .. <Argumentn>

Creating a separate ticket with this feature request and/or clarification
focus only, to not pollute another ticket which reported another issue.
Mostlikely it will use process.argv somewhere. To grab the command

line arguments. Or some library that does that for you. So hardcoding
main() isn't a solution, because it lacks the parameter passing. Also
traditionally the argv should land in the Prolog flag argv, which

exists in SWI-Prolog. The polluted ticket was this here:

Audit failed, problems with node-static
#431

@Jean-Luc-Picard-2021 Jean-Luc-Picard-2021 changed the title The big question is there a Command Line Interface (CLI) ? Is there a Command Line Interface (CLI) ? Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant