make CLI traceback less painful
@@ -79,10 +79,15 @@ def pymedphys_cli():
if hasattr(args, "func"):
try:
args.func(args, remaining)
+ return
except TypeError:
+ pass
+
parser.parse_args()
args.func(args)
- else:
+
+ return
+
subparser_names = [
attribute for attribute in dir(args) if not attribute.startswith("_")
]
