Commit 7aa6d72c authored by Vincent Pelletier's avatar Vincent Pelletier

Warn & exit when no stats are to be gathered.

parent ed866ad8
...@@ -406,6 +406,10 @@ def main(): ...@@ -406,6 +406,10 @@ def main():
default_site = args.default default_site = args.default
if default_site is None: if default_site is None:
default_action = None default_action = None
if not [None for _, x in site_list if x is not None]:
print >> sys.stderr, 'None of --default, --erp5-base and --base were ' \
'specified, nothing to do.'
sys.exit(1)
else: else:
default_action = partial(GenericSiteStats, prefix=0) default_action = partial(GenericSiteStats, prefix=0)
infile_list = args.logfile infile_list = args.logfile
......
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