MCPcopy Create free account
hub / github.com/Boris-code/feapder / parse_args

Function parse_args

feapder/commands/shell.py:184–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def parse_args():
185 parser = argparse.ArgumentParser(
186 description="测试请求",
187 usage="usage: feapder shell [options] [args]",
188 )
189 parser.add_argument(
190 "-u",
191 "--url",
192 help="请求指定地址, 如 feapder shell --url http://www.spidertools.cn/",
193 metavar="",
194 )
195 parser.add_argument("-c", "--curl", help="执行curl,调试响应", action="store_true")
196
197 args = parser.parse_args()
198 return parser, args
199
200
201def main():

Callers 1

mainFunction · 0.70

Calls 1

add_argumentMethod · 0.95

Tested by

no test coverage detected