[Banner] Simplify header section #25

Merged
merged 4 commits into from May 12, 2014

Projects

None yet

3 participants

@fabiopelosin
Owner

This is about always having the usage section.

[Edit] Removed old screenshoots.

Owner
orta commented May 10, 2014

This feels awesome.

Owner

This is a pull request because it changes the banner to always have an usage section. /c @alloy. The usage section now indicates wether a subcommand is required, optional (square brackets) or not available.

It also prettifies the description by colouring arguments and option flags, and wrapping the text. If the terminal is too wide a maximum width keeps the text readable.

Before

screen shot 2014-05-12 at 17 17 53
screen shot 2014-05-12 at 17 18 54

After

screen shot 2014-05-12 at 17 15 56
screen shot 2014-05-12 at 17 15 48
screen shot 2014-05-12 at 17 15 22
screen shot 2014-05-12 at 17 16 12

Owner
alloy commented May 12, 2014

Looks amaze craze! 👍

Owner

Ace!

@fabiopelosin fabiopelosin merged commit a1e3bcb into master May 12, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
@fabiopelosin fabiopelosin deleted the experimental-usage branch May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment