mirror of
https://github.com/httpie/cli.git
synced 2024-12-25 15:58:59 +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>`_
|
* `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.
|
||||||
|
@ -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.
|
||||||
'''),
|
'''),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user