We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use the filename in a message, but currently filename is not considered an argument
import { len, exit } from "std" main (args) { if len(args) < 1 { let filename = args[0] echo "Missing branch name" echo "Usage: ./{filename} <branch>" exit(1) } }
Describe the solution you"d like I would expect args[0] to always be the filename as is the case in bash with argument $0
args[0]
$0
The text was updated successfully, but these errors were encountered:
We are Amber so we do different things, the 0 parameter usually is the script itself. Let"s see @Ph0enixKM what think about it.
Sorry, something went wrong.
Yes, we are doing the following under the hood args=("$@") that for some reason seems to not include $0. This should be changed to include that
args=("$@")
This is a duplicate of #265
main
No branches or pull requests
I want to use the filename in a message, but currently filename is not considered an argument
Describe the solution you"d like
I would expect
args[0]
to always be the filename as is the case in bash with argument$0
The text was updated successfully, but these errors were encountered: