Browse code

Clarified GPL Version 2, --help text cleanup

Fixed a few mispells. Fixed --multipart-chunk-size-mb help text to be
15MB default instead of noneMB.

matteobar authored on 2014/04/18 16:59:41
Showing 1 changed files
... ...
@@ -1,10 +1,22 @@
1 1
 #!/usr/bin/env python
2 2
 
3
-## Amazon S3 manager
4
-## Author: Michal Ludvig <michal@logix.cz>
5
-##         http://www.logix.cz/michal
6
-## License: GPL Version 2
7
-## Copyright: TGRMN Software and contributors
3
+## --------------------------------------------------------------------
4
+## s3cmd - S3 client
5
+##
6
+## Authors   : Michal Ludvig and contributors
7
+## Copyright : TGRMN Software - http://www.tgrmn.com - and contributors
8
+## Website   : http://s3tools.org
9
+## License   : GPL Version 2
10
+## --------------------------------------------------------------------
11
+## This program is free software; you can redistribute it and/or modify
12
+## it under the terms of the GNU General Public License as published by
13
+## the Free Software Foundation; either version 2 of the License, or
14
+## (at your option) any later version.
15
+## This program is distributed in the hope that it will be useful,
16
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+## GNU General Public License for more details.
19
+## --------------------------------------------------------------------
8 20
 
9 21
 import sys
10 22
 
... ...
@@ -2078,7 +2090,7 @@ def main():
2078 2078
     optparser.add_option(      "--no-mime-magic", dest="use_mime_magic", action="store_false", help="Don't use mime magic when guessing MIME-type.")
2079 2079
     optparser.add_option("-m", "--mime-type", dest="mime_type", type="mimetype", metavar="MIME/TYPE", help="Force MIME-type. Override both --default-mime-type and --guess-mime-type.")
2080 2080
 
2081
-    optparser.add_option(      "--add-header", dest="add_header", action="append", metavar="NAME:VALUE", help="Add a given HTTP header to the upload request. Can be used multiple times. For instance set 'Expires' or 'Cache-Control' headers (or both) using this options if you like.")
2081
+    optparser.add_option(      "--add-header", dest="add_header", action="append", metavar="NAME:VALUE", help="Add a given HTTP header to the upload request. Can be used multiple times. For instance set 'Expires' or 'Cache-Control' headers (or both) using this option.")
2082 2082
 
2083 2083
     optparser.add_option(      "--server-side-encryption", dest="server_side_encryption", action="store_true", help="Specifies that server-side encryption will be used when putting objects.")
2084 2084
 
... ...
@@ -2087,7 +2099,7 @@ def main():
2087 2087
     optparser.add_option(      "--verbatim", dest="urlencoding_mode", action="store_const", const="verbatim", help="Use the S3 name as given on the command line. No pre-processing, encoding, etc. Use with caution!")
2088 2088
 
2089 2089
     optparser.add_option(      "--disable-multipart", dest="enable_multipart", action="store_false", help="Disable multipart upload on files bigger than --multipart-chunk-size-mb")
2090
-    optparser.add_option(      "--multipart-chunk-size-mb", dest="multipart_chunk_size_mb", type="int", action="store", metavar="SIZE", help="Size of each chunk of a multipart upload. Files bigger than SIZE are automatically uploaded as multithreaded-multipart, smaller files are uploaded using the traditional method. SIZE is in Mega-Bytes, default chunk size is %defaultMB, minimum allowed chunk size is 5MB, maximum is 5GB.")
2090
+    optparser.add_option(      "--multipart-chunk-size-mb", dest="multipart_chunk_size_mb", type="int", action="store", metavar="SIZE", help="Size of each chunk of a multipart upload. Files bigger than SIZE are automatically uploaded as multithreaded-multipart, smaller files are uploaded using the traditional method. SIZE is in Mega-Bytes, default chunk size is 15MB, minimum allowed chunk size is 5MB, maximum is 5GB.")
2091 2091
 
2092 2092
     optparser.add_option(      "--list-md5", dest="list_md5", action="store_true", help="Include MD5 sums in bucket listings (only for 'ls' command).")
2093 2093
     optparser.add_option("-H", "--human-readable-sizes", dest="human_readable_sizes", action="store_true", help="Print sizes in human readable form (eg 1kB instead of 1234).")
... ...
@@ -2095,8 +2107,8 @@ def main():
2095 2095
     optparser.add_option(      "--ws-index", dest="website_index", action="store", help="Name of index-document (only for [ws-create] command)")
2096 2096
     optparser.add_option(      "--ws-error", dest="website_error", action="store", help="Name of error-document (only for [ws-create] command)")
2097 2097
 
2098
-    optparser.add_option(      "--expiry-date", dest="expiry_date", action="store", help="Indicates when the expiration rule take effect. (only for [expire] comman)")
2099
-    optparser.add_option(      "--expiry-days", dest="expiry_days", action="store", help="Indicates the number of days after object creation the expiration rule take effect. (only for [expire] command)")
2098
+    optparser.add_option(      "--expiry-date", dest="expiry_date", action="store", help="Indicates when the expiration rule takes effect. (only for [expire] command)")
2099
+    optparser.add_option(      "--expiry-days", dest="expiry_days", action="store", help="Indicates the number of days after object creation the expiration rule takes effect. (only for [expire] command)")
2100 2100
     optparser.add_option(      "--expiry-prefix", dest="expiry_prefix", action="store", help="Identifying one or more objects with the prefix to which the expiration rule applies. (only for [expire] command)")
2101 2101
 
2102 2102
     optparser.add_option(      "--progress", dest="progress_meter", action="store_true", help="Display progress meter (default on TTY).")
... ...
@@ -2125,7 +2137,7 @@ def main():
2125 2125
         '"buckets" and uploading, downloading and removing '+
2126 2126
         '"objects" from these buckets.')
2127 2127
     optparser.epilog = format_commands(optparser.get_prog_name(), commands_list)
2128
-    optparser.epilog += ("\nFor more information see the project homepage:\n%s\n" % PkgInfo.url)
2128
+    optparser.epilog += ("\nFor more information, updates and news, visit the s3cmd website:\n%s\n" % PkgInfo.url)
2129 2129
     optparser.epilog += ("\nConsider a donation if you have found s3cmd useful:\n%s/donate\n" % PkgInfo.url)
2130 2130
 
2131 2131
     (options, args) = optparser.parse_args()