Browse code

Guard against common error when using --bucket-prefix

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/amax-follow-symlinks@429 830e0280-6d2a-0410-9c65-932aecc39d9d

Aaron Maxwell authored on 2010/07/19 05:14:42
Showing 1 changed files
... ...
@@ -174,6 +174,9 @@ bucket_prefix = ''
174 174
 argv = sys.argv[1:]
175 175
 while argv:
176 176
 	arg = argv.pop(0)
177
+        if arg.startswith('--bucket-prefix='):
178
+                print "Usage: '--bucket-prefix PREFIX', not '--bucket-prefix=PREFIX'"
179
+                sys.exit(0)
177 180
 	if arg in ("-h", "--help"):
178 181
 		print "%s A B K..O -N" % sys.argv[0]
179 182
 		print "Run tests number A, B and K through to O, except for N"