Lines Matching refs:parser
247 parser = OptionParser()
248 parser.add_option('-d', '--mcfile', type='string', action='store',
250 parser.add_option('-H', '--headerfile', type='string', action='append',
252 parser.add_option('-m', '--model', type='string', action='store',
254 parser.add_option('-M', '--multiple', type='string', action='store',
256 parser.add_option('-o', '--outfile', type='string', action='store',
259 parser.usage += """ command
273 (options, args) = parser.parse_args()
275 parser.error('Please specify a command')
278 parser.error("Unknown command '%s'" % cmd)
281 parser.error("You must specify either header files or a microcode file, not both")
290 parser.error('You must specify a microcode file (or header files)')
298 parser.error('You must specify a model to create')
307 parser.error("Unknown model '%s' (%s) - try 'list' to list" %
310 parser.error("Ambiguous model '%s' (%s) matched %s - try 'list' "
316 parser.error("Unknown command '%s'" % cmd)