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 two variants for each command #56

Open
harendra-kumar opened this issue Jul 7, 2022 · 0 comments
Open

Use two variants for each command #56

harendra-kumar opened this issue Jul 7, 2022 · 0 comments

Comments

@harendra-kumar
Copy link
Member

We use commands of the form cmd optionModifier args. For default case we would be passing the modifier as id. So in all default cases the calls will look like cmd id args. Assuming we will use this form frequently we can use two different forms of each command (1) cmdWith modifier args for the with-option case and (2) cmd for the default case. That will make the default case easier to use.

This issue is for discussion, not for immediate implementation.

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

No branches or pull requests

1 participant