We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c5167 commit a70c4c7Copy full SHA for a70c4c7
simple_parsing/wrappers/field_wrapper.py
@@ -1021,7 +1021,7 @@ def add_subparsers(self, parser: ArgumentParser):
1021
# subparsers.required = default_value is dataclasses.MISSING
1022
for subcommand, dataclass_type in self.subparsers_dict.items():
1023
logger.debug(f"adding subparser '{subcommand}' for type {dataclass_type}")
1024
- subparser = subparsers.add_parser(subcommand)
+ subparser = subparsers.add_parser(subcommand, formatter_class=parser.formatter_class)
1025
# Just for typing correctness, as we didn't explicitly change
1026
# the return type of subparsers.add_parser method.)
1027
subparser = cast("ArgumentParser", subparser)
0 commit comments