optparse.OptionParser.parse_args wants argv[1:]
authorW. Trevor King <wking@drexel.edu>
Sun, 27 Jun 2010 01:12:15 +0000 (21:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 27 Jun 2010 01:12:15 +0000 (21:12 -0400)
sitecore/alt_tags.py
sitecore/prof/export_mysql.py
sitecore/prof/import.py

index 661ab6438ab9059d7d7107d3c5630e33419db008..0bc6472262b1fb47a8fc43a9f14daa7dc0beb1fb 100644 (file)
@@ -69,7 +69,7 @@ Example setup before running:
                  help='increment verbosity (%default)',
                  default=0)
 
-    options,args = p.parse_args()
+    options,args = p.parse_args(argv[1:])
 
     s = SiteCoreConnection(options.url, options.verbose)
     s.start()
index fb4d45d6021d62db6904cec71dccc840e2a402e8..152eb9551b137ce60b96610a04b23d09cf31a198 100644 (file)
@@ -226,7 +226,7 @@ Example:
                  help='increment verbosity (%default)',
                  default=0)
 
-    options,args = p.parse_args(argv)
+    options,args = p.parse_args(argv[1:])
     prof_file = args[0]
 
     db = SimpleDB(verbose=options.verbose)
index b8f9add1a28c2881855922ec6fe9983b167c21e3..08dc4b921159fa8d03ed4d0190c833dc8019f9ad 100644 (file)
@@ -66,7 +66,7 @@ Example setup before running:
                  help='increment verbosity (%default)',
                  default=0)
 
-    options,args = p.parse_args(argv)
+    options,args = p.parse_args(argv[1:])
     prof_file = args[0]
     profs = yaml.load(prof_file)