parser.add_option("-i", "--input", default="", help="Read stdin from a file.")
parser.add_option("--output", default="", help="Redirect stdout to a file.")
parser.add_option("--errout", default="", help="Redirect stderr to a file.")
-parser.add_option("--ruby", action="store_true")
-execfile(os.path.join(config_root, "common", "Options.py"))
+if 'PROTOCOL' in buildEnv:
+ parser.add_option("--ruby", action="store_true")
-(options, args) = parser.parse_args()
+execfile(os.path.join(config_root, "common", "Options.py"))
-if options.ruby:
+if '--ruby' in sys.argv:
Ruby.define_options(parser)
- (options, args) = parser.parse_args()
+
+(options, args) = parser.parse_args()
if args:
print "Error: script doesn't take any positional arguments"