You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ env PYTHONPATH=devtools/py py -m switch-track --help
usage: env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Set each NAME to VALUE in the environment and run COMMAND.
positional arguments:
inputs
options:
-h, --help show this help message and exit
-i, --ignore-environment
start with an empty environment
The arg parsing is failing because the -m and --help are being parsed for env. env needs to ignore any options after the first argument is encountered.
The text was updated successfully, but these errors were encountered:
I notice the [-] in the usage. However, injecting a - ahead of the command seems to have no effect. I did find, by checking the argparse docs, that injecting -- ahead of the command args does force them to be passed through to the subprocess command.
That option isn't available on env for macOS, but I do see it on Linux, where:
A mere - implies -i.
Probably cmdix should mimic that behavior for compatibility.
Consider this invocation:
or
The arg parsing is failing because the
-m
and--help
are being parsed forenv
.env
needs to ignore any options after the first argument is encountered.The text was updated successfully, but these errors were encountered: