Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Print the Full Help message #23

Merged
merged 2 commits into from

2 participants

@draco2003

Print the full help message instead of just the usage message without the options.

@draco2003 draco2003 Print the Full Help message
Print the full help message instead of just the usage message without the options.
d76ac03
@mleinart
Owner

+1
Can you make the same change to the rest of the utilities in bin/?

@draco2003

All set.

Thanks for the quick response.

@mleinart mleinart merged commit 1aeec87 into graphite-project:master

1 check passed

Details default The Travis build passed
@mleinart
Owner

Awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. @draco2003

    Print the Full Help message

    draco2003 authored
    Print the full help message instead of just the usage message without the options.
  2. @draco2003
This page is out of date. Refresh to see the latest.
View
2  bin/whisper-create.py
@@ -32,7 +32,7 @@
(options, args) = option_parser.parse_args()
if len(args) < 2:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
View
2  bin/whisper-fetch.py
@@ -30,7 +30,7 @@
(options, args) = option_parser.parse_args()
if len(args) != 1:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
View
2  bin/whisper-info.py
@@ -17,7 +17,7 @@
(options, args) = option_parser.parse_args()
if len(args) < 1:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
View
2  bin/whisper-merge.py
@@ -19,7 +19,7 @@
(options, args) = option_parser.parse_args()
if len(args) < 2:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path_from = args[0]
View
4 bin/whisper-resize.py
@@ -54,14 +54,14 @@
(options, args) = option_parser.parse_args()
if len(args) < 2:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
if not os.path.exists(path):
sys.stderr.write("[ERROR] File '%s' does not exist!\n\n" % path)
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
info = whisper.info(path)
View
4 bin/whisper-set-aggregation-method.py
@@ -19,7 +19,7 @@
(options, args) = option_parser.parse_args()
if len(args) < 2:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
@@ -29,7 +29,7 @@
oldAggregationMethod = whisper.setAggregationMethod(path, aggregationMethod)
except IOError, exc:
sys.stderr.write("[ERROR] File '%s' does not exist!\n\n" % path)
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
except whisper.WhisperException, exc:
raise SystemExit('[ERROR] %s' % str(exc))
View
2  bin/whisper-update.py
@@ -21,7 +21,7 @@
(options, args) = option_parser.parse_args()
if len(args) < 2:
- option_parser.print_usage()
+ option_parser.print_help()
sys.exit(1)
path = args[0]
Something went wrong with that request. Please try again.