在我的一個--help程序中傳遞時,我有一個非常長的幫助菜單:optional arguments: -h, --help show this help message and exitmandatory arguments: arguments that have to be passed for the program to run -u URL, --url URL Pass a single URL to detect the protection...request arguments: arguments that will control your requests --pa USER-AGENT Provide your own personal agent to use it for the HTTP...encoding options: arguments that control the encoding of payloads -e PAYLOAD [TAMPER-SCRIPT-LOAD-PATH ...], --encode PAYLOAD [TAMPER-SCRIPT-LOAD-PATH ...]...output options: arguments that control how WhatWaf handles output -F, --format Format the output into a dict and display it...misc arguments: arguments that don't fit in any other category --verbose Run in verbose mode (more output)...構建參數的結構如下所示: mandatory = parser.add_argument_group("mandatory arguments", "arguments that have to be passed for the program to run") mandatory.add_argument("-u", "--url", dest="runSingleWebsite", metavar="URL", help="Pass a single URL to detect the protection")... req_args = parser.add_argument_group("request arguments", "arguments that will control your requests") req_args.add_argument("--pa", dest="usePersonalAgent", metavar="USER-AGENT", help="Provide your own personal agent to use it for the HTTP requests")...
添加回答
舉報
0/150
提交
取消