diff --git a/minitch.py b/minitch.py old mode 100644 new mode 100755 index c6b7243..23a0605 --- a/minitch.py +++ b/minitch.py @@ -154,7 +154,10 @@ def main(): parser_search.set_defaults(func=parser_list) args = parser.parse_args() - args.func(args) + try: + args.func(args) + except AttributeError: + parser.error('too few arguments') write_config()