MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _cli_parse

Function _cli_parse

thirdparty/bottle/bottle.py:31–50  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

29
30
31def _cli_parse(args): # pragma: no coverage
32 from argparse import ArgumentParser
33
34 parser = ArgumentParser(prog=args[0], usage="%(prog)s [options] package.module:app")
35 opt = parser.add_argument
36 opt("--version", action="store_true", help="show version number.")
37 opt("-b", "--bind", metavar="ADDRESS", help="bind socket to ADDRESS.")
38 opt("-s", "--server", default='wsgiref', help="use SERVER as backend.")
39 opt("-p", "--plugin", action="append", help="install additional plugin/s.")
40 opt("-c", "--conf", action="append", metavar="FILE",
41 help="load config values from FILE.")
42 opt("-C", "--param", action="append", metavar="NAME=VALUE",
43 help="override config values.")
44 opt("--debug", action="store_true", help="start server in debug mode.")
45 opt("--reload", action="store_true", help="auto-reload on file changes.")
46 opt('app', help='WSGI app entry point.', nargs='?')
47
48 cli_args = parser.parse_args(args[1:])
49
50 return cli_args, parser
51
52
53def _cli_patch(cli_args): # pragma: no coverage

Callers 2

_cli_patchFunction · 0.85
_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…