From 068b659da26dab7241d5c89df88185494700356c Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Tue, 28 May 2013 10:37:03 -0700 Subject: 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 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 9301713..817cb4b 100644 --- a/README.rst +++ b/README.rst @@ -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 -- cgit v1.2.1