Lines Matching refs:parser
51 def take_action(self, action, dest, opt, value, values, parser): argument
55 Option.take_action(self, action, dest, opt, value, values, parser)
71 parser = OptionParser(option_class=MultipleOption, usage=usage) variable
72 parser.add_option("-f", "--file_contexts", dest="file_contexts",
74 parser.add_option("-p", "--policy", dest="policy", metavar="FILE")
75 parser.add_option("-l", "--library-path", dest="libpath", metavar="FILE")
76 parser.add_option("-t", "--test", dest="test", action="extend",
79 (options, args) = parser.parse_args()
82 sys.exit("Must specify path to libsepolwrap library\n" + parser.usage)
85 + parser.usage)
88 sys.exit("Must specify monolithic policy file\n" + parser.usage)
91 + parser.usage)
94 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
98 parser.usage)