-
Notifications
You must be signed in to change notification settings - Fork 220
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
How to get args passed after the script? #82
Comments
Hey! It depends on what The common scenario is probably defining a command in a Nu script, like this:
You can have multiple command arguments in the square brackets. In order to use
If Can you use a command definition like this for your use case and does this answer your question? |
currently, i don't believe nushell supports passing multiple arguments on the nushell command line to scripts. i.e. |
@fdncred @filaretov Thanks for your reply, |
And this issue |
If I ran
try.sh foo
in the console, I can get the foo input by$1
.And How to get args passed after the nu script?
How can I get the param
foo
andbar
? Thanks.The text was updated successfully, but these errors were encountered: