sindresorhus / meow

🐈 CLI app helper
MIT License
3.54k stars 151 forks source link

Only show version/help when `cli.input.length === 0` is true #113

Closed LitoMore closed 5 years ago

LitoMore commented 5 years ago

Hi, it's a feature request!

I'm working on this issue: https://github.com/sindresorhus/latest-version-cli/issues/2.

About this case:

$ latest-version npm --version=beta

I think meow should not print the version if cli.input.length === 0 is false.

Although we already have the autoVersion option, but if we turn it to false we have to handle the showVersion manually.

sindresorhus commented 5 years ago

I agree. Same with --help. PR welcome.