Fix number of required arguments
The first argument is the name of the script itself, At least two arguments are required. The second argument is the path to the configuration file. Change-Id: I6d42e6b0d6adc1f4bfb8d750ccaf500d371dc895
This commit is contained in:
parent
739e7f18b9
commit
ef54cfbd61
|
@ -201,7 +201,7 @@ class CycleGaugeData(object):
|
|||
if __name__ == '__main__':
|
||||
|
||||
template_dir = os.path.dirname(sys.argv[0])
|
||||
if len(sys.argv) < 1:
|
||||
if len(sys.argv) < 2:
|
||||
print >> sys.stderr, "Usage: %s config.yaml" % sys.argv[0]
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue