Closed lebrice closed 2 years ago
When mixing both, e.g.
@dataclass class Config: person: Person = subgroups({ "bob": Bob, "alice": Alice, }, default=Bob) parser = ArgumentParser() parser.add_arguments(Config, dest="config") parser.add_arguments(Foo, dest="foo") args = parser.parse_args()
Raises a RuntimeError("namespace shouldnt already have a "foo" attribute!")
When mixing both, e.g.
Raises a RuntimeError("namespace shouldnt already have a "foo" attribute!")