args and -- and argv #46
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "args-argv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes the
argsarray only include args passed to your shrimp program. Use--when passing args to the cli.@probablycorey We need a better name than
args, maybe? Because if you doargs = blahin a script you're going to overwrite the global for your whole program.Maybe
$script.args? We could then also add:$script.path$script.nameOr do we want to do Python-style and do
__args__or something? Kinda gross.Oh yeah, can't do
$scriptbecause that interferes with string interpolation.Maybe a good place for
CAPS?SCRIPT.nameandARGSandARGV?For now I'm going with just
$, alone. We can change later if we come up with something more Shrimpy:$.args$.script.name$.script.path$.env$.pid$.cwd(
$is kinda fun because it's an s like... shrimp)superseded by #49
Pull request closed