Better wording.

This commit is contained in:
Jakub Roztocil 2012-07-17 00:05:09 +02:00
parent 681b652bf9
commit 05b321d38f
3 changed files with 3 additions and 2 deletions

View File

@ -226,7 +226,7 @@ Changelog
--------- ---------
* `0.2.3dev <https://github.com/jkbr/httpie/compare/0.2.2...master>`_ * `0.2.3dev <https://github.com/jkbr/httpie/compare/0.2.2...master>`_
* --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``). * 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 missing query string when displaing the request headers via ``--verbose``.
* Fixed Content-Type for requests with no data. * Fixed Content-Type for requests with no data.

View File

@ -126,7 +126,7 @@ parser.add_argument(
'--auth', '-a', type=cliparse.AuthCredentialsType(cliparse.SEP_COMMON), '--auth', '-a', type=cliparse.AuthCredentialsType(cliparse.SEP_COMMON),
help=_(''' help=_('''
username:password. 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.
'''), '''),
) )

View File

@ -230,6 +230,7 @@ class AuthCredentials(KeyValue):
""" """
def _getpass(self, prompt): def _getpass(self, prompt):
# To allow mocking.
return getpass.getpass(prompt) return getpass.getpass(prompt)
def has_password(self): def has_password(self):