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:
Christian Berendt 2014-09-29 09:45:00 +02:00
parent 739e7f18b9
commit ef54cfbd61
1 changed files with 1 additions and 1 deletions

View File

@ -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)