Lines Matching refs:parser
248 parser = OptionParser()
249 parser.add_option('-d', '--mcfile', type='string', action='store',
251 parser.add_option('-H', '--headerfile', type='string', action='append',
253 parser.add_option('-m', '--model', type='string', action='store',
255 parser.add_option('-M', '--multiple', type='string', action='store',
257 parser.add_option('-o', '--outfile', type='string', action='store',
260 parser.usage += """ command
274 (options, args) = parser.parse_args()
276 parser.error('Please specify a command')
279 parser.error("Unknown command '%s'" % cmd)
282 parser.error("You must specify either header files or a microcode file, not both")
288 parser.error('You must specify a microcode file (or header files)')
296 parser.error('You must specify a model to create')
305 parser.error("Unknown model '%s' (%s) - try 'list' to list" %
308 parser.error("Ambiguous model '%s' (%s) matched %s - try 'list' "
314 parser.error("Unknown command '%s'" % cmd)