will be separated by a blank line for better readability. """ def __init__(self, max_help_position=6, *args, **kwargs): # A smaller indent for args help. kwargs['max_help_position'] = max_help_position super(HTTPieHelpFormatter, self).__init__(*args, **kwargs) def _split_lines(self, text, width): text = dedent(text).strip() + '\n\n' return text.splitlines() parser = Parser( formatter_class=HTTPieHelpFormatter, description='%s <http://httpie.org>' % __doc__.strip(), epilog=dedent(""" For every --OPTION there is also a --no-OPTION that reverts OPTION to its default value. Suggestions and bug reports are greatly appreciated: https://github.com/jkbrzt/httpie/issues """) ) ####################################################################### # Positional arguments. #######################################################################
SEPARATOR_GROUP_ALL_ITEMS, SEPARATOR_PROXY, SSL_VERSION_ARG_MAPPING, ) from httpie.output.formatters.colors import ( AUTO_STYLE, AVAILABLE_STYLES, DEFAULT_STYLE, ) from httpie.plugins import plugin_manager from httpie.plugins.builtin import BuiltinAuthPlugin from httpie.sessions import DEFAULT_SESSIONS_DIR parser = HTTPieArgumentParser( prog='http', description='%s <http://httpie.org>' % __doc__.strip(), epilog=dedent(""" For every --OPTION there is also a --no-OPTION that reverts OPTION to its default value. Suggestions and bug reports are greatly appreciated: https://github.com/jakubroztocil/httpie/issues """), ) ####################################################################### # Positional arguments. #######################################################################
""" def __init__(self, max_help_position=6, *args, **kwargs): # A smaller indent for args help. kwargs["max_help_position"] = max_help_position super(HTTPieHelpFormatter, self).__init__(*args, **kwargs) def _split_lines(self, text, width): text = dedent(text).strip() + "\n\n" return text.splitlines() parser = HTTPieArgumentParser( formatter_class=HTTPieHelpFormatter, description="%s <http://httpie.org>" % __doc__.strip(), epilog=dedent( """ For every --OPTION there is also a --no-OPTION that reverts OPTION to its default value. Suggestions and bug reports are greatly appreciated: https://github.com/jkbrzt/httpie/issues """ ), ) #######################################################################