Skip to content

Commit

Permalink
Merge pull request #1688 from Avaiga/fix/#1687-first-cli-option-is-sk…
Browse files Browse the repository at this point in the history
…ipped-if-before-positional-arg

Fix/#1687 - First cli option is skipped if it's before the positional arg
  • Loading branch information
trgiangdo authored Aug 22, 2024
2 parents e74b89a + 2bbc2b6 commit 06b0a2f
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 06b0a2f

Please sign in to comment.