mirror of
https://github.com/httpie/cli.git
synced 2024-12-24 23:39:18 +01:00
Better wording.
This commit is contained in:
parent
681b652bf9
commit
05b321d38f
@ -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.
|
||||
|
@ -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.
|
||||
'''),
|
||||
)
|
||||
|
||||
|
@ -230,6 +230,7 @@ class AuthCredentials(KeyValue):
|
||||
|
||||
"""
|
||||
def _getpass(self, prompt):
|
||||
# To allow mocking.
|
||||
return getpass.getpass(prompt)
|
||||
|
||||
def has_password(self):
|
||||
|
Loading…
Reference in New Issue
Block a user