X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fsfatables;h=2f20f3f9de5f8727ffcb2f263b8c604f2bf7ef68;hb=de9697271869dfd4a488eeb1a9dacb881f7e5f07;hp=379b749c1b3e75683580a3f88186bb3d928bdb37;hpb=7a3131ef03d2a4b30cce63cb6f671a4e35da836d;p=sfa.git diff --git a/sfatables/sfatables b/sfatables/sfatables index 379b749c..2f20f3f9 100755 --- a/sfatables/sfatables +++ b/sfatables/sfatables @@ -91,6 +91,7 @@ def main(): match_parser = create_parser_xml_ext(match_dict) matches_str = ",".join(match_dict.keys()) match_parser.add_option('-m','--match',dest='name',help='Match name (one of %s)'%matches_str, metavar = 'MATCH') + match_parser.add_option('-n','--negate',dest='negate',help='Negate result',action='store_true') (match_options, args) = match_parser.parse_args(pargs[1]) try: name = match_options.name @@ -112,11 +113,12 @@ def main(): target_parser = create_parser_xml_ext(target_dict) targets_str = ",".join(target_dict.keys()) target_parser.add_option('-j','--jump',dest='name',help='Target name (one of %s)'%targets, metavar = 'TARGET') + target_parser.add_option('-e','--element',dest='element',help='Element name', metavar = 'ELEMENT') (target_options, args) = target_parser.parse_args(pargs[2]) try: name = target_options.name except Exception: - print "Must specify target name with -m" + print "Must specify target name with -j" if (target_dict.has_key(name)): setattr(target_options, 'arguments', target_dict[name].arguments)