coqpit icon indicating copy to clipboard operation
coqpit copied to clipboard

Allow grouping of argparse fields according to subclassing

Open reuben opened this issue 2 years ago • 2 comments

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.

reuben avatar Nov 18 '21 11:11 reuben

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?

erogol avatar Nov 18 '21 12:11 erogol

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

reuben avatar Nov 18 '21 12:11 reuben