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

make _add_dataclass_options public #58

Open
martinResearch opened this issue Aug 21, 2023 · 1 comment · May be fixed by #59
Open

make _add_dataclass_options public #58

martinResearch opened this issue Aug 21, 2023 · 1 comment · May be fixed by #59
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@martinResearch
Copy link

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?

@mivade
Copy link
Owner

mivade commented Sep 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
2 participants