@@ -450,6 +450,8 @@ def main():
450450 '--severity' , default = "unknown" , help = 'the severity of the rule.' )
451451 common_rule_args .add_argument (
452452 '--identifiers' , default = "TBD" , help = 'an identifier for the rule (CCE number)' )
453+ common_rule_args .add_argument (
454+ '--jqfilter' , default = "" , help = 'A JQ filter to select the data passed down for OVAL evaluation.' )
453455
454456 type_parser = create_parser .add_subparsers (dest = 'rule types' , title = 'Creates a rule' , help = 'Types of rules' )
455457 platform_parser = type_parser .add_parser ('platform' , help = 'Creates a Platform rule' , parents = [common_rule_args ])
@@ -477,8 +479,6 @@ def main():
477479 '--check-existence' , help = 'check_existence` value for the `yamlfilecontent_test`.' )
478480 platform_parser .add_argument (
479481 '--negate' , default = False , action = "store_true" , help = 'negate the given matching criteria (does NOT match). Default is false.' )
480- platform_parser .add_argument (
481- '--jqfilter' , default = "" , help = 'A JQ filter to select the data passed down for OVAL evaluation.' )
482482 platform_parser .set_defaults (func = createPlatformRuleFunc )
483483
484484 node_parser = type_parser .add_parser ('node' , help = 'Creates a Node rule' , parents = [common_rule_args ])
0 commit comments