Skip to content

Conversation

@MasterOdin
Copy link
Contributor

Expands the usage section of the README to show the same message as typing tldr --help.

The custom string for the usage argument of argparse is unfortunate, but it's the only way to get the positional arguments section to show up, while also not showing command as totally optional. This is also probably simpler than writing up a custom formatter for argparse.

I could see writing a note below this section to explain the handling of command (e.g. you can type multiple words and will be automatically concatenated (e.g. git rm -> git-rm) or something.

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@zlatanvasovic zlatanvasovic merged commit 702c116 into master May 16, 2020
@zlatanvasovic zlatanvasovic deleted the readme_usage branch May 16, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants