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

Use Traits for subcommands #11

Open
omid opened this issue Mar 6, 2023 · 2 comments
Open

Use Traits for subcommands #11

omid opened this issue Mar 6, 2023 · 2 comments
Labels
enhancement New feature or request todo

Comments

@omid
Copy link

omid commented Mar 6, 2023

If it's possible, I think it's a better practice to use trait to define subcommands.

@pouriya
Copy link
Owner

pouriya commented Mar 6, 2023

I used to use structopt. Actually it's the first time I use clap. I'm not expert in using it. I do not know if it's possible.

@pouriya pouriya added the enhancement New feature or request label Mar 6, 2023
@omid
Copy link
Author

omid commented Mar 6, 2023

structops kinda merged into clap.
you can follow a similar pattern to that anyway.

@pouriya pouriya added the todo label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo
Projects
None yet
Development

No branches or pull requests

2 participants