Skip to content

Commit

Permalink
fix: first cli option is skipped if it's before the positional arg
Browse files Browse the repository at this point in the history
  • Loading branch information
trgiangdo committed Aug 21, 2024
1 parent 06aba3e commit 2bbc2b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion taipy/_cli/_run_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def handle_command(cls):
if getattr(args, "which", None) != "run":
return

all_args = sys.argv[3:] # First 3 args are always (1) Python executable, (2) run, (3) Python file
# First 2 args are always (1) Python executable, (2) run
# Unknown args are passed when running the application but will be ignored
all_args = sys.argv[2:]

external_args = []
try:
Expand Down

0 comments on commit 2bbc2b6

Please sign in to comment.