We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba50f8e commit 12bb2d9Copy full SHA for 12bb2d9
bin/fetch_file
@@ -22,8 +22,14 @@
22
#
23
if __name__ == "__main__":
24
from optparse import OptionParser
25
- parser = OptionParser(version="0.1", usage="Usage: %prog [options] url")
26
- parser.add_option("-o", "--out-file", help="Output file", dest="outfile")
+ usage = """%prog [options] URI
+Fetch a URI using the boto library and (by default) pipe contents to STDOUT
27
+The URI can be either an HTTP URL, or "s3://bucket_name/key_name"
28
+"""
29
+ parser = OptionParser(version="0.1", usage=usage)
30
+ parser.add_option("-o", "--out-file",
31
+ help="File to receive output instead of STDOUT",
32
+ dest="outfile")
33
34
(options, args) = parser.parse_args()
35
if len(args) < 1:
0 commit comments