Commit ca61b13f authored by Arnaud Fontaine's avatar Arnaud Fontaine

Either --state-file or logfile arguments must be specified.

parent ea4376d0
......@@ -1304,6 +1304,9 @@ def main():
'ignored. Useful to exclude monitoring systems.')
args = parser.parse_args()
if not args.logfile and not args.state_file:
parser.error('Either --state-file or logfile arguments '
'must be specified.')
if DURATION_US_FORMAT in args.logformat:
getDuration = lambda x: int(x.group('duration'))
elif DURATION_S_FORMAT in args.logformat:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment