| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ea71f1d commit 6bb4d17
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ def _get_base_parser(add_help=True): | |||
| 98 | 98 | "will be used."), | |
| 99 | 99 | required=False) | |
| 100 | 100 | parser.add_argument("-o", "--output", | |
| 101 | - help=("Output format (v4 only): json|legacy|yaml"), | ||
| 101 | + help="Output format (v4 only): json|legacy|yaml", | ||
| 102 | 102 | required=False, | |
| 103 | 103 | choices=['json', 'legacy', 'yaml'], | |
| 104 | 104 | default="legacy") | |
@@ -135,6 +135,10 @@ def main(): | |||
| 135 | 135 | exit(0) | |
| 136 | 136 | ||
| 137 | 137 | parser = _get_base_parser(add_help=False) | |
| 138 | + if "--help" in sys.argv or "-h" in sys.argv: | ||
| 139 | + parser.print_help() | ||
| 140 | + exit(0) | ||
| 141 | + | ||
| 138 | 142 | # This first parsing step is used to find the gitlab config to use, and | |
| 139 | 143 | # load the propermodule (v3 or v4) accordingly. At that point we don't have | |
| 140 | 144 | # any subparser setup | |
| Back | FazBrowse Home | New Git URL |
0 commit comments