mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-06 17:23:16 -06:00
feat: show help on internal cli
This commit is contained in:
parent
e9ad0d4148
commit
0a0ffd9046
1 changed files with 3 additions and 0 deletions
|
@ -623,6 +623,9 @@ def _internal_cli():
|
||||||
parser.add_argument("-V", "--version", help="show version", action="store_true")
|
parser.add_argument("-V", "--version", help="show version", action="store_true")
|
||||||
parser.add_argument("--which", help="show path to swydd", action="store_true")
|
parser.add_argument("--which", help="show path to swydd", action="store_true")
|
||||||
|
|
||||||
|
if len(sys.argv) == 2:
|
||||||
|
parser.print_help(sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
args = parser.parse_args(sys.argv[2:])
|
args = parser.parse_args(sys.argv[2:])
|
||||||
|
|
||||||
if args.version:
|
if args.version:
|
||||||
|
|
Loading…
Reference in a new issue