--- /Users/rochg/porting/buildbot-0.7.4/buildbot/scripts/runner.py	2006-08-23 08:11:16.000000000 +0100
+++ /opt/local/lib/python2.4/site-packages/buildbot/scripts/runner.py	2007-07-09 12:57:39.000000000 +0100
@@ -611,6 +611,8 @@
 
         ["builder", "b", None,
          "Run the trial build on this Builder. Can be used multiple times."],
+        ["customproperties", None, None,
+         "A set of custom properties made available in the build environment, format:prop=value,propb=valueb..."],
         ]
 
     optFlags = [
@@ -620,10 +622,22 @@
     def __init__(self):
         super(TryOptions, self).__init__()
         self['builders'] = []
+        self['custom_props'] = {}
 
     def opt_builder(self, option):
         self['builders'].append(option)
 
+    def opt_customproperties(self, option):
+        # We need to split the value of this option into a dictionary of custom
+        # properties
+        custom_props = {}
+        propertylist = option.split(",")
+        for i in range(0,len(propertylist)):
+            print propertylist[i]
+            splitproperty = propertylist[i].split("=")
+            custom_props[splitproperty[0]] = splitproperty[1]
+        self['custom_props'] = custom_props
+
     def getSynopsis(self):
         return "Usage:    buildbot try [options]"
 

