aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/scripts/parse_corr_html_results_to_csv.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/wqflask/scripts/parse_corr_html_results_to_csv.py b/wqflask/scripts/parse_corr_html_results_to_csv.py
index c54d99ca..464eb2ca 100644
--- a/wqflask/scripts/parse_corr_html_results_to_csv.py
+++ b/wqflask/scripts/parse_corr_html_results_to_csv.py
@@ -162,11 +162,14 @@ def parse_cli_args():
gn1_parser(subparsers)
gn2_parser(subparsers)
- return parser.parse_args()
+ return parser, parser.parse_args()
def run():
- args = parse_cli_args()
- args.func(args)
+ parser, args = parse_cli_args()
+ try:
+ args.func(args)
+ except AttributeError as _attr_err:
+ parser.print_help()
if __name__ == "__main__":
run()