https://pantsbuild.org/ logo
#general
Title
# general
a

average-sugar-68948

05/10/2023, 6:57 PM
Hi all, does anyone know if it's possible to pass command line arguments into a script being run by
experimental_run_shell_command
? e.g for Python I can do:
./pants run path/to/file.py -- --arg1=foo
. Any equivalent for shell, other than hard-coding them into the
command
field of the rule?
1
w

witty-crayon-22786

05/10/2023, 7:00 PM
this is fixed in more recent versions: https://github.com/pantsbuild/pants/issues/16901 … so you should be able to see it in
2.16.0rc2
?
c

curved-television-6568

05/10/2023, 7:19 PM
..
rc1
? rc2 is not yet released
👍 1
a

average-sugar-68948

05/10/2023, 7:47 PM
just tested in my environment, works! thanks!
👍 1
2 Views