aboutsummaryrefslogtreecommitdiff
path: root/wqflask/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-24 12:08:07 +0300
committerFrederick Muriuki Muriithi2023-01-24 12:08:07 +0300
commit72ba40a0f4174232937af111a11e7b91d9edc707 (patch)
treedf14a1abcc012631d137893a0ff31f830408c1bd /wqflask/scripts
parent1030425624b67b30073be512817661d45dceb93c (diff)
downloadgenenetwork2-72ba40a0f4174232937af111a11e7b91d9edc707.tar.gz
scripts: Provide help info for script.
Diffstat (limited to 'wqflask/scripts')
-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()