-
Notifications
You must be signed in to change notification settings - Fork 515
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 forward args? (Like "$@"
in bash)
#631
Comments
Do you want to forward a fixed number of arguments, or a variable number of arguments? All arguments can be forwarded, even if variadic:
But there isn't a direct equivalent of |
@casey Thanks. |
If you give it the empty string as a default argument, it will accept zero args:
This is definitely somewhat cumbersome. I'm not sure why I didn't just give it this behavior to begin with, but at this point I think it would be reasonable to add |
@casey I actually tried |
Agreed! I just opened #633, to add |
How can I forward args to a subcommand (e.g. cargo)?
(Like
"$@"
in bash)The text was updated successfully, but these errors were encountered: