argparse_dataclass icon indicating copy to clipboard operation
argparse_dataclass copied to clipboard

make _add_dataclass_options public

Open martinResearch opened this issue 2 years ago • 3 comments
trafficstars

Hi,

I would like to be able to use _add_dataclass_options directly in some of my code in order to be able to continue using normal argparse.ArgumentParser instances and use a dataclass to define only a subset of my script arguments. Would it be possible to expose _add_dataclass_options as a public function i.e. remove the initial underscore?

martinResearch avatar Aug 21 '23 16:08 martinResearch

I don't see why not. Feel free to make a pull request!

mivade avatar Sep 01 '23 14:09 mivade