Generates list of command-line arguments acceptable by misra.py script.
()
| 5044 | |
| 5045 | |
| 5046 | def 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 | |
| 5063 | def main(): |
no outgoing calls