1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 57 unchanged lines hidden (view full) --- 66 buildEnv['TARGET_ISA']), 67 help="The binary to run in syscall emulation mode.") 68parser.add_option("-o", "--options", default="", 69 help='The options to pass to the binary, use " " around the entire string') 70parser.add_option("-i", "--input", default="", help="Read stdin from a file.") 71parser.add_option("--output", default="", help="Redirect stdout to a file.") 72parser.add_option("--errout", default="", help="Redirect stderr to a file.") 73 |
74execfile(os.path.join(config_root, "common", "Options.py")) 75 |
76if buildEnv['PROTOCOL'] != 'None': 77 parser.add_option("--ruby", action="store_true") 78 if '--ruby' in sys.argv: 79 Ruby.define_options(parser) |
80 81(options, args) = parser.parse_args() 82 83if args: 84 print "Error: script doesn't take any positional arguments" 85 sys.exit(1) 86 87multiprocesses = [] --- 111 unchanged lines hidden --- |