1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

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>`_
* --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.

View File

@ -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.
'''),
)

View File

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