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

Utilize add_subparsers to unify CLI #7

Closed
ibnesayeed opened this issue Jun 3, 2020 · 4 comments
Closed

Utilize add_subparsers to unify CLI #7

ibnesayeed opened this issue Jun 3, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ibnesayeed
Copy link
Member

It looks like argparse is being used in individual actions which is then called from bin/hc where a top-level command (i.e., hc) implements arg parsing manually. We could perhaps use add_subparsers in the entrypoint script to leverage built-in capabilities on the standard argument parser package. We have used this technique in some of the other WSDL projects.

@ibnesayeed ibnesayeed added the enhancement New feature or request label Jun 3, 2020
@shawnmjones
Copy link
Member

I've experimented with this successfully. What other WSDL projects have used it successfully?

@ibnesayeed
Copy link
Member Author

What other WSDL projects have used it successfully?

@shawnmjones
Copy link
Member

Thanks! I'll review that code and see what I can adapt.

@shawnmjones
Copy link
Member

This was completed by aa8bdaa as part of the IIPC 2021 DSA Grant.

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

No branches or pull requests

2 participants