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
In cases where there in an hierarchy of commands, and use of envs - either by default_env=True or by using `export JSONARGPARSE_DEFAULT_ENV=true', parsing fails.
Here is an example:
🐛 Bug report
In cases where there in an hierarchy of commands, and use of envs - either by
default_env=True
or by using `export JSONARGPARSE_DEFAULT_ENV=true', parsing fails.Here is an example:
Running:
python a.py a sub usage: a.py [options] a [-h] [--a_arg A_ARG] {sub} ... error: expected "subcommand" to be one of {sub}, but it was not provided.
When disabling both environment options (env and code) it works fine:
To reproduce
See above.
Expected behavior
Succeed in parsing.
Environment
pip install jsonargparse[all]
): `pip install jsonargparse'The text was updated successfully, but these errors were encountered: