Skip to content
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

Option to show full help message with ActionParser arguments. #41

Closed
stasbel opened this issue Mar 15, 2021 · 2 comments
Closed

Option to show full help message with ActionParser arguments. #41

stasbel opened this issue Mar 15, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@stasbel
Copy link

stasbel commented Mar 15, 2021

I actively am using subparsers with jsonargparse.ActionParser. The problem is -- arguments for subparser's nodes don't appear in main parser help message.
I know it's outlined in README, but It's very confusing to see half of arguments available withscript.py --help.

@mauvilsa mauvilsa added the enhancement New feature or request label Mar 16, 2021
@mauvilsa
Copy link
Member

I agree it would be much nicer if the ActionParser arguments are shown in the main parser help. Though I am not sure how difficult it would be to implement this. Will take a look at it later.

@mauvilsa mauvilsa changed the title Option to show full help message with subparsers's arguments. Option to show full help message with ActionParser arguments. Mar 16, 2021
mauvilsa added a commit that referenced this issue Mar 17, 2021
- The help of ActionParser arguments is now shown in the main help #41.
- Fixed nested options with names including dashes not working #42.
- Fixed DefaultHelpFormatter not properly using env_prefix to show var names.
- _ActionConfigLoad is now recursive to replace old ActionParser behavior.
- Fixed issue in _load_config when given non-config/-dict value.
@mauvilsa
Copy link
Member

This is now part of release v3.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants