From 05b321d38f62551d163e5d2df0834e61aa1f88ee Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Tue, 17 Jul 2012 00:05:09 +0200 Subject: [PATCH] Better wording. --- README.rst | 2 +- httpie/cli.py | 2 +- httpie/cliparse.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index b8d01d1e..513bfd59 100644 --- a/README.rst +++ b/README.rst @@ -226,7 +226,7 @@ Changelog --------- * `0.2.3dev `_ - * --auth now prompts for a password if none is provided. + * --auth now prompts for a password if only a username provided. * Added support for request payloads from a file path with automatic ``Content-Type`` (``http URL @/path``). * Fixed missing query string when displaing the request headers via ``--verbose``. * Fixed Content-Type for requests with no data. diff --git a/httpie/cli.py b/httpie/cli.py index 4c894494..8dc49a8d 100644 --- a/httpie/cli.py +++ b/httpie/cli.py @@ -126,7 +126,7 @@ parser.add_argument( '--auth', '-a', type=cliparse.AuthCredentialsType(cliparse.SEP_COMMON), help=_(''' username:password. - If the password is omitted (-a username), HTTPie will prompt for it. + If only the username is provided (-a username), HTTPie will prompt for the password. '''), ) diff --git a/httpie/cliparse.py b/httpie/cliparse.py index 29ac989b..cde195a3 100644 --- a/httpie/cliparse.py +++ b/httpie/cliparse.py @@ -230,6 +230,7 @@ class AuthCredentials(KeyValue): """ def _getpass(self, prompt): + # To allow mocking. return getpass.getpass(prompt) def has_password(self):