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

Comments

Projects
None yet
2 participants
@diimpp
Copy link

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

This comment has been minimized.

Copy link
Owner

serghey-rodin commented Dec 28, 2012

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

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

@diimpp

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner

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