You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-07-17 01:42:46 +02:00
rename existing_file to readable_file_arg and move to input
This commit is contained in:
@ -18,8 +18,8 @@ from .input import (Parser, AuthCredentialsArgType, KeyValueArgType,
|
||||
SEP_PROXY, SEP_CREDENTIALS, SEP_GROUP_ALL_ITEMS,
|
||||
OUT_REQ_HEAD, OUT_REQ_BODY, OUT_RESP_HEAD,
|
||||
OUT_RESP_BODY, OUTPUT_OPTIONS, OUTPUT_OPTIONS_DEFAULT,
|
||||
PRETTY_MAP, PRETTY_STDOUT_TTY_ONLY, SessionNameValidator)
|
||||
from .utils import existing_file
|
||||
PRETTY_MAP, PRETTY_STDOUT_TTY_ONLY, SessionNameValidator,
|
||||
readable_file_arg)
|
||||
|
||||
|
||||
class HTTPieHelpFormatter(RawDescriptionHelpFormatter):
|
||||
@ -469,7 +469,7 @@ network.add_argument(
|
||||
network.add_argument(
|
||||
'--ssl-cert',
|
||||
default=None,
|
||||
type=existing_file,
|
||||
type=readable_file_arg,
|
||||
help="""
|
||||
You can specify a local cert to use as client side SSL certificate.
|
||||
This file may either contain both private key and certificate or you may
|
||||
@ -481,7 +481,7 @@ network.add_argument(
|
||||
network.add_argument(
|
||||
'--ssl-key',
|
||||
default=None,
|
||||
type=existing_file,
|
||||
type=readable_file_arg,
|
||||
help="""
|
||||
The private key to use with SSL. Only needed if --ssl-cert is given and the
|
||||
certificate file does not contain the private key.
|
||||
|
Reference in New Issue
Block a user