From 348c449615f49a3710d64617690da6a7adc9a636 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 26 Jun 2010 21:12:15 -0400 Subject: [PATCH] optparse.OptionParser.parse_args wants argv[1:] --- sitecore/alt_tags.py | 2 +- sitecore/prof/export_mysql.py | 2 +- sitecore/prof/import.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) -- 2.26.2