feat: show help on internal cli

This commit is contained in:
Daylin Morgan 2024-10-24 18:43:15 -05:00
parent e9ad0d4148
commit 0a0ffd9046
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -623,6 +623,9 @@ def _internal_cli():
parser.add_argument("-V", "--version", help="show version", 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:])
if args.version: