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

[Pull request] I think this will make it look better #66

Closed
wants to merge 17 commits into from

Conversation

PeterlitsZo
Copy link
Contributor

I change the way to print the usage! I think it will be better! Do you think so?

I think too many empty lines looks not good, so the updated version may
have a better looking like this:

$ ./main
usage: East [-h|--help] [-d|--dirpath "<value>"]
description:
  sreach engine on file system
arguments:
  -h, --help      Print help infomation
  -d, --dirpath   the input files' folder path
$

^ the empty lines are removed, and I make the upper cast to lower
character. The least, I add a comma token beteewn the `-short` flag and
`--long flag`
for a better output (I think)
@akamensky
Copy link
Owner

Not sure why this PR is not blocked, but it should be. This change fails the build.

I find that if the sub-command part is empty the origin will add a
newline token still - but it is not what I want! so I compare the length
to check if I should add the newline character.
fix a bug from peterlits
@PeterlitsZo
Copy link
Contributor Author

Hi, akamensky,
emm, fail to build? could you give me more infomation? It works well on my computer.

@PeterlitsZo
Copy link
Contributor Author

PeterlitsZo commented May 15, 2020

Hi, akamensky,
Anyway, a pic is better than words:
before:
before
after:
after

It do be better! Thanks.

@akamensky
Copy link
Owner

@PeterlitsZo
Copy link
Contributor Author

Hi, akamensky,
Oh! I get it! I forget to update the test file!

@PeterlitsZo
Copy link
Contributor Author

Hi, akamensky,
I update the test source file to make it run ok. How about it now? Is everything going well?

@stale
Copy link

stale bot commented Jan 15, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. Thank you for your contributions. Feel free to comment or otherwise update to keep it alive.

@stale stale bot added the stale-issue The issue has been stale for some time. label Jan 15, 2021
@stale
Copy link

stale bot commented Jan 29, 2021

Closing due to old age. Feel free to re-open or ping maintainers.

@stale stale bot closed this Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale-issue The issue has been stale for some time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants