Skip to content

Commit 91b743b

Browse files
committed
fixed invalid args or command exception
1 parent 1af5bc5 commit 91b743b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ellar_cli/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def typer_callback(
4040
ctx.meta[ELLAR_META] = meta_
4141

4242

43-
def build_typers() -> None:
43+
def build_typers() -> t.Any:
4444
try:
4545
options, args = getopt.getopt(
4646
sys.argv[1:],
@@ -53,7 +53,9 @@ def build_typers() -> None:
5353
if k in ["-p", "--project"] and v:
5454
app_name = v
5555
except Exception:
56-
raise typer.Abort()
56+
typer.Abort()
57+
return 1
58+
5759

5860
meta_: t.Optional[EllarCLIService] = EllarCLIService.import_project_meta(app_name)
5961

0 commit comments

Comments
 (0)