diff --git a/metacatalog/command_line.py b/metacatalog/command_line.py index 02d1bebd..85ac18d9 100644 --- a/metacatalog/command_line.py +++ b/metacatalog/command_line.py @@ -113,11 +113,11 @@ def main(): # RUN THE TOOL #------------------- # print version - if hasattr(args, 'version') and args.version: + if hasattr(args, 'version'): print(VERSION) # if development mode, do not handle errors - elif args.dev: + elif hasattr(args, 'dev'): args.func(args) # else, catch all errors and print to file