build_tc.py now accepts an output directory for where portage output
 gets stored.

PRESUBMIT=passed
R=raymes,bjanakiraman
DELTA=75  (49 added, 2 deleted, 24 changed)
OCL=45554-p2
RCL=45556-p2
RDATE=2010/12/01 19:34:17


P4 change: 42606747
diff --git a/v14/setup_chromeos.py b/v14/setup_chromeos.py
index b144607..ea824fb 100755
--- a/v14/setup_chromeos.py
+++ b/v14/setup_chromeos.py
@@ -69,7 +69,7 @@
   return latest
 
 
-def Main():
+def Main(argv):
   """Checkout the ChromeOS source."""
   parser = optparse.OptionParser()
   parser.add_option("--dir", dest="directory",
@@ -82,7 +82,7 @@
                     help="""Whether to checkout the minilayout 
 (smaller checkout).'""")
 
-  options = parser.parse_args()[0]
+  options = parser.parse_args(argv)[0]
 
   tags = GetTags()
 
@@ -173,4 +173,4 @@
 
 
 if __name__ == "__main__":
-  Main()
+  Main(sys.argv)