Fail early when no command given
This commit is contained in:
parent
5bc5403d6d
commit
9d29fbb8b7
@ -106,6 +106,10 @@ class AFSMonCmd(object):
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
logger.debug("Debugging enabled")
|
||||
|
||||
if not self.args.command:
|
||||
parser.print_help()
|
||||
return 1
|
||||
|
||||
if not os.path.exists(self.args.config):
|
||||
raise ValueError("Config file %s does not exist" %
|
||||
self.args.config)
|
||||
|
Loading…
Reference in New Issue
Block a user