From 393caae381eec927c2b865fe76e233b672fc1dc3 Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Tue, 19 Mar 2013 07:15:24 +0100 Subject: [PATCH] show help if no action option is given --- atomstrom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atomstrom.py b/atomstrom.py index d385c5d..4ce9cf9 100755 --- a/atomstrom.py +++ b/atomstrom.py @@ -275,5 +275,7 @@ if __name__ == '__main__': mail_single_entries(session) if options.daily: mail_daily_digest(session) + if not (options.fetch or options.single or options.daily): + parser.print_help() session.commit()