1
0
mirror of https://github.com/httpie/cli.git synced 2026-06-20 11:32:56 +02:00

Have --auth prompt for password if omitted.

This commit is contained in:
Ismail Badawi
2012-07-16 04:40:36 -04:00
parent 7bc2de2f9d
commit 929ead437a
2 changed files with 20 additions and 2 deletions
+5 -2
View File
@@ -123,8 +123,11 @@ parser.add_argument(
# ``requests.request`` keyword arguments.
parser.add_argument(
'--auth', '-a', help='username:password',
type=cliparse.KeyValueType(cliparse.SEP_COMMON)
'--auth', '-a', type=cliparse.AuthCredentials(cliparse.SEP_COMMON),
help=_('''
username:password.
If the password is omitted, HTTPie will prompt for it.
'''),
)
parser.add_argument(