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

Consider making commands be commands instead of flags #72

Open
twisterghost opened this issue Aug 8, 2018 · 5 comments
Open

Consider making commands be commands instead of flags #72

twisterghost opened this issue Aug 8, 2018 · 5 comments

Comments

@twisterghost
Copy link

twisterghost commented Aug 8, 2018

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

@colingm
Copy link

colingm commented Aug 10, 2018

it would still be reasonable to have aliases for commands too similar to how npm has both npm install and npm i

@rjoydip-zz
Copy link

I agree but there are no options in meow which ignore -- prefix.

@colingm
Copy link

colingm commented Aug 12, 2018

I think that is why there is discussion on Gitter to investigate using yargs or commander.js

@rjoydip-zz
Copy link

@colingm Yeah I have remember.

@anirath
Copy link

anirath commented Dec 20, 2019

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

I definitely agree with this request. Using commands, as opposed to flags, would seem to make more sense.

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

No branches or pull requests

5 participants