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

refactoring: func_argparser() is implemented using a class #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shx2
Copy link

@shx2 shx2 commented May 3, 2020

My apegears library defines a subclass of ArgumentParser. I'd like to integrate it with the func_argparse parser generator, so that the generator can generate the my parser type.

For that, I refactored some of the func_argparse code, so it is easier to customize. Apegears includes code to customize it for this purpose.

You can see here how it is used:
shx2/apegears@9c72c7f

to allow argparser-generation customization, by subclassing the generator class
@shx2
Copy link
Author

shx2 commented May 3, 2020

The docs might also help:
https://github.com/shx2/apegears#func_argparse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant