Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

blurb: small usability improvements #161

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

Merged
merged 3 commits into from
May 14, 2018

Conversation

JelleZijlstra
Copy link
Member

These would have made my first experience using blurb just now smoother.

  • Make blurb --help work in addition to blurb help. This is my default command for figuring out how to use a command; for example, mypy --help, pip --help, and flit --help all give me useful info.
  • Suggest looking at blurb help if the user gave an invalid command.

blurb/blurb.py Outdated
@@ -677,6 +677,8 @@ def help(subcommand=None):
summaries = []
longest_name_len = -1
for name, fn in subcommands.items():
if name == '--help':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to if name.startswith("-"): ? That would let us support `--version`` too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. (There isn't currently a "version" subcommand though.)

@larryhastings larryhastings merged commit ff140ae into python:master May 14, 2018
@larryhastings
Copy link
Contributor

Sorry this languished for so long!

@JelleZijlstra
Copy link
Member Author

Thanks for merging this!

@JelleZijlstra JelleZijlstra deleted the blurbcli branch May 14, 2018 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.