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

Allow grouping of argparse fields according to subclassing #26

Open
reuben opened this issue Nov 18, 2021 · 2 comments
Open

Allow grouping of argparse fields according to subclassing #26

reuben opened this issue Nov 18, 2021 · 2 comments

Comments

@reuben
Copy link
Contributor

reuben commented Nov 18, 2021

When using inheritance to extend config definitions the resulting ArgumentParser has all fields flattened out. It would be nice to group fields by class and allow some control over ordering.

@erogol
Copy link
Member

erogol commented Nov 18, 2021

What do you mean by grouping ?

Just for argparse or in the Coqpit class too?

How would you to_json it if we group by class?

@reuben
Copy link
Contributor Author

reuben commented Nov 18, 2021

Just for argparse, which lets you have argument groups with titles/descriptions. JSON grouping is already handled with nested configs.

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

No branches or pull requests

2 participants