MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / get_args_parser

Function get_args_parser

addons/misra.py:5046–5060  ·  view source on GitHub ↗

Generates list of command-line arguments acceptable by misra.py script.

()

Source from the content-addressed store, hash-verified

5044
5045
5046def get_args_parser():
5047 """Generates list of command-line arguments acceptable by misra.py script."""
5048 parser = cppcheckdata.ArgumentParser()
5049 parser.add_argument("--rule-texts", type=str, help=RULE_TEXTS_HELP)
5050 parser.add_argument("--verify-rule-texts",
5051 help="Verify that all supported rules texts are present in given file and exit.",
5052 action="store_true")
5053 parser.add_argument("--suppress-rules", type=str, help=SUPPRESS_RULES_HELP)
5054 parser.add_argument("--no-summary", help="Hide summary of violations", action="store_true")
5055 parser.add_argument("--show-suppressed-rules", help="Print rule suppression list", action="store_true")
5056 parser.add_argument("-P", "--file-prefix", type=str, help="Prefix to strip when matching suppression file rules")
5057 parser.add_argument("-generate-table", help=argparse.SUPPRESS, action="store_true")
5058 parser.add_argument("-verify", help=argparse.SUPPRESS, action="store_true")
5059 parser.add_argument("--severity", type=str, help="Set a custom severity string, for example 'error' or 'warning'. ")
5060 return parser
5061
5062
5063def main():

Callers 3

checkerFunction · 0.90
mainFunction · 0.70

Calls

no outgoing calls

Tested by 2

checkerFunction · 0.72