cross run
interprets the program's arguments as its own (ignores --
).
#1048
Labels
cross run
interprets the program's arguments as its own (ignores --
).
#1048
Checklist
Describe your issue
(Not entirely sure if this should be an issue report or a feature request).
When a binary being run with
cargo run
takes arguments, you can tellcargo
where its arguments end and where the program's arguments begin with--
, e.g.cargo run --cargo-argument -- --program-argument
.cross
does not currently do this, and it interprets--program-argument
for itself, as well as passing it to the program. This was most noticeable for me with-v
, sincecross
's verbose textual output tostdout
interfered with a program's pipedstdout
.What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.4
Example
The repo contains a simple program:
The
test.sh
script callscargo run
andcross run --target=aarch64-unknown-linux-gnu
(the specific target doesn't matter) with-- -v
(and other argument configurations) to show the difference withcargo
, e.g.expected:
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: