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

pass arguments to run #67

Open
joprice opened this issue Oct 9, 2020 · 2 comments
Open

pass arguments to run #67

joprice opened this issue Oct 9, 2020 · 2 comments
Labels

Comments

@joprice
Copy link

joprice commented Oct 9, 2020

This may be a spago limitation, but I expected to be able to pass flags to spago run that would get forwarded to the binary. Instead, I have to run spago build and then run the binary directly with the args.

While trying this, I also discovered spago's --node-args, which maybe should be renamed --backend-args, since it works to send arguments to the psgo process as well: spago run --node-args "--version"

@andyarvanitis
Copy link
Owner

Seems like a good suggestion (renaming it), but it would of course be something to request from the spago folks directly.

@joprice
Copy link
Author

joprice commented Dec 12, 2020

I opened an issue for the rename, but as for passing the args, I assume this backend needs to change to support something like a separator --, an args flag, or just passing the trailing args on to the process?

For example, running

spago run --node-args "--flag flag-value" --verbose

results in calling

psgo --run Main.main --flag flag-value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants