diff options
author | Ori Livneh <ori@wikimedia.org> | 2013-05-28 10:37:03 -0700 |
---|---|---|
committer | Ori Livneh <ori@wikimedia.org> | 2013-05-28 16:15:26 -0700 |
commit | 068b659da26dab7241d5c89df88185494700356c (patch) | |
tree | ce13c159351b2aef006bbce55bcee1b58bad2e18 /README.rst | |
parent | 267b8a8e4d1045092afadf797216fc88e2b78f03 (diff) | |
download | git-review-068b659da26dab7241d5c89df88185494700356c.tar.gz |
Provide usage help even if not in Git directory
If a new user installs git-review and invokes it with no arguments (or with
'-h' / '--help') outside of a Git working tree, all she gets is a terse error
message that offers no usage help.
With this change, git-review behaves in the following manner when invoked
outside a git working tree:
* If a command-line argument is present and it is not '-h' or '--help', it is
assumed that the user was attempting some action, and so git-review fails
with the same error message as before.
* If no command-line arguments are present, or if there is a single
command-line argument that is either '-h' or '--help', usage information is
printed and the program exits.
This patch also adds myself to AUTHORS and fixes a small typo in README.rst.
Change-Id: I6fda72bf5311e74318b42e2860e7742e07b515de
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,4 +130,4 @@ Use ``git review`` to submit patches (after creating a gerrit account that links # Do your commits git review - # Enter your username if promped + # Enter your username if prompted |