# HG changeset patch # User Pierre-Yves David # Date 1398458131 25200 # Node ID f0f8100968429a31948eb74f53b8dd22b7c7e820 # Parent 7078ce067367f1eed24a269a327f34d5defd528b revsetbenchmark: add a usage message when no arguments are passed This increase the odd someone who didn't wrote will it find out how to use this script. diff -r 7078ce067367 -r f0f810096842 contrib/revsetbenchmarks.py --- a/contrib/revsetbenchmarks.py Tue Apr 29 19:15:36 2014 -0700 +++ b/contrib/revsetbenchmarks.py Fri Apr 25 13:35:31 2014 -0700 @@ -66,6 +66,10 @@ +if len(sys.argv) < 2: + print >> sys.stderr, 'usage: %s [file]' % sys.argv[0] + sys.exit(255) + target_rev = sys.argv[1] revsetsfile = sys.stdin