diff options
author | Frederick Muriuki Muriithi | 2023-01-24 12:08:07 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-01-24 12:08:07 +0300 |
commit | 72ba40a0f4174232937af111a11e7b91d9edc707 (patch) | |
tree | df14a1abcc012631d137893a0ff31f830408c1bd /wqflask | |
parent | 1030425624b67b30073be512817661d45dceb93c (diff) | |
download | genenetwork2-72ba40a0f4174232937af111a11e7b91d9edc707.tar.gz |
scripts: Provide help info for script.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/scripts/parse_corr_html_results_to_csv.py | 9 |
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() |