コード例 #1
0
ファイル: cli.py プロジェクト: Athsheep/Flask_Web_Development
    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.
#######################################################################
コード例 #2
0
    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.
#######################################################################
コード例 #3
0
ファイル: cli.py プロジェクト: 08opt/httpie
    """

    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

    """
    ),
)


#######################################################################