Lines Matching refs:parser
319 def take_action(self, action, dest, opt, value, values, parser): argument
323 Option.take_action(self, action, dest, opt, value, values, parser)
335 parser = OptionParser(option_class=MultipleOption, usage=usage) variable
336 parser.add_option("-b", "--basepolicy", dest="basepolicy", metavar="FILE")
337 parser.add_option("-u", "--base-pub-policy", dest="base_pub_policy",
339 parser.add_option("-f", "--file_contexts", dest="file_contexts",
341 parser.add_option("-l", "--library-path", dest="libpath", metavar="FILE")
342 parser.add_option("-m", "--mapping", dest="mapping", metavar="FILE")
343 parser.add_option("-o", "--oldpolicy", dest="oldpolicy", metavar="FILE")
344 parser.add_option("-p", "--policy", dest="policy", metavar="FILE")
345 parser.add_option("-t", "--test", dest="tests", action="extend",
347 parser.add_option("--fake-treble", action="store_true", dest="faketreble",
350 (options, args) = parser.parse_args()
353 sys.exit("Must specify path to libsepolwrap library\n" + parser.usage)
356 + parser.usage)
358 sys.exit("Must specify current monolithic policy file\n" + parser.usage)
361 + parser.usage)
363 sys.exit("Error: Must specify file_contexts file(s)\n" + parser.usage)
367 parser.usage)
374 + parser.usage)
377 + parser.usage)
380 + parser.usage)
383 + ".cil file\n" + parser.usage)