Skip to content

Commit 12bb2d9

Browse files
committed
Improved usage info for fetch_file
1 parent ba50f8e commit 12bb2d9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bin/fetch_file

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@
2222
#
2323
if __name__ == "__main__":
2424
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")
25+
usage = """%prog [options] URI
26+
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")
2733

2834
(options, args) = parser.parse_args()
2935
if len(args) < 1:

0 commit comments

Comments
 (0)