|
|
@@ -11,7 +11,11 @@ class CliArguments:
|
|
|
@staticmethod
|
|
|
def read_command(parser):
|
|
|
args = parser.parse_args()
|
|
|
- return args.command(args)
|
|
|
+
|
|
|
+ if hasattr(args, "command"):
|
|
|
+ return args.command(args)
|
|
|
+ else:
|
|
|
+ return parser.error("You should call at least one of the commands")
|
|
|
|
|
|
@staticmethod
|
|
|
def new() -> argparse.ArgumentParser:
|