A major annoyance to cpkg run is that you can't pass any command line arguments to the binary, leading to doing something like cpkg build && ./mybin xyz instead of cpkg run xyz
It's even a pain for rust..
I think the only solution is the same as what cargo does, requiring a -- before you start writing arguments. This is since cpkg run <script> is valid now.
Alternative:
Undo that choice and make it cpkg run --script test or cpkg script test, therefore freeing up any extra arguments to directly pass them to the binary.
A major annoyance to
cpkg run
is that you can't pass any command line arguments to the binary, leading to doing something likecpkg build && ./mybin xyz
instead ofcpkg run xyz
It's even a pain for rust..
I think the only solution is the same as what
cargo
does, requiring a--
before you start writing arguments. This is sincecpkg run <script>
is valid now.Alternative: Undo that choice and make it
cpkg run --script test
orcpkg script test
, therefore freeing up any extra arguments to directly pass them to the binary.