From: W. Trevor King Date: Sun, 27 Jun 2010 01:12:15 +0000 (-0400) Subject: optparse.OptionParser.parse_args wants argv[1:] X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=348c449615f49a3710d64617690da6a7adc9a636;p=sitecorepy.git optparse.OptionParser.parse_args wants argv[1:] --- diff --git a/sitecore/alt_tags.py b/sitecore/alt_tags.py index 661ab64..0bc6472 100644 --- a/sitecore/alt_tags.py +++ b/sitecore/alt_tags.py @@ -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() diff --git a/sitecore/prof/export_mysql.py b/sitecore/prof/export_mysql.py index fb4d45d..152eb95 100644 --- a/sitecore/prof/export_mysql.py +++ b/sitecore/prof/export_mysql.py @@ -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) diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index b8f9add..08dc4b9 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -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)