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

Cli usage messages beautify #57

Closed
diimpp opened this issue Dec 28, 2012 · 3 comments
Closed

Cli usage messages beautify #57

diimpp opened this issue Dec 28, 2012 · 3 comments
Assignees

Comments

@diimpp
Copy link

@diimpp diimpp commented Dec 28, 2012

# v-list-web-domains
Error: not enought arguments
Usage: v-list-web-domains user [format]
Usage: v-list-web-domains [user] [format]

Увидел, что в usage есть user только после просмотра кода скрипта.

@serghey-rodin
Copy link
Owner

@serghey-rodin serghey-rodin commented Dec 28, 2012

Спасибо за предожение. С эстетической точки зрения я согласен, но с практической скобки служат другой задаче. Они отделяют необязательные параметры от обязательных. Вот например help вывод grep:
[root@v-test ~]# grep --help
Usage: grep [OPTION]... PATTERN [FILE]...

Тут тот же подход.

@diimpp
Copy link
Author

@diimpp diimpp commented Dec 28, 2012

Usage: v-list-web-domains USER [FORMAT]

?

@ghost ghost assigned serghey-rodin Dec 28, 2012
@serghey-rodin serghey-rodin reopened this Dec 28, 2012
@serghey-rodin
Copy link
Owner

@serghey-rodin serghey-rodin commented Dec 28, 2012

wow, much better now 👍

Thank you!

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

Successfully merging a pull request may close this issue.

None yet
2 participants