Fix option parsing.
authorNathan Binkert <binkertn@umich.edu>
Tue, 11 Jul 2006 15:28:59 +0000 (11:28 -0400)
committerNathan Binkert <binkertn@umich.edu>
Tue, 11 Jul 2006 15:28:59 +0000 (11:28 -0400)
src/python/m5/main.py:
    Don't allow interspersed arguments, it messes things up

--HG--
extra : convert_revision : 8f1bcf4391f570741d92bf5420879862a48f6016

src/python/m5/main.py

index b4c89f61253c0a563e1fee8a5f6de1739e8fbadc..904b241ca9c976575aeca209277a8279e33925b5 100644 (file)
@@ -50,6 +50,7 @@ All Rights Reserved
 parser = optparse.OptionParser(usage=usage, version=version,
                                description=brief_copyright,
                                formatter=optparse.TitledHelpFormatter())
+parser.disable_interspersed_args()
 
 # current option group
 group = None