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

Could we remove the '\n' if don't set description? #95

Open
NE-SmallTown opened this issue Jul 27, 2018 · 6 comments
Open

Could we remove the '\n' if don't set description? #95

NE-SmallTown opened this issue Jul 27, 2018 · 6 comments

Comments

@NE-SmallTown
Copy link

https://github.com/sindresorhus/meow/blob/master/index.js#L74-L79

shows that even we set description=false, there still will be a '\n' before the help value, that looks like a little wired.

@sindresorhus
Copy link
Owner

That is intentional.

This:

❯ node cli.js --help

  Usage
    $ trash <path|glob> [...]

  Examples
    $ trash unicorn.png rainbow.png
    $ trash '*.png' '!unicorn.png'

Looks better than this:

❯ node cli.js --help
  Usage
    $ trash <path|glob> [...]

  Examples
    $ trash unicorn.png rainbow.png
    $ trash '*.png' '!unicorn.png'

@NE-SmallTown
Copy link
Author

Ah, I think the former would be better. 😄 Could we provide a flag to toggle this?

@sindresorhus
Copy link
Owner

The former is what it currently looks like, so I'm not sure what you're asking.

@NE-SmallTown
Copy link
Author

Sorry, typo. I mean the later

@LitoMore
Copy link
Sponsor Contributor

I think the first one which has a newline between the command and the help text is better.

@LitoMore
Copy link
Sponsor Contributor

Ah, I think the former second one would be better. 😄 Could we provide a flag to toggle this?

I guess @NE-SmallTown means the second one.

What about add an option to disable the trimNewLine and other modifications for helpText?

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

3 participants