mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Better wording.
This commit is contained in:
1 parent
681b652bf9
commit
05b321d38f
3 files changed
+3
-2
No files matched your search
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user