Closed zjp-CN closed 1 month ago
The usage is a bit confusing. It says
cargo lockbud [options] [...] [--] ...
can accept cargo lockbud [lockbud options] [cargo build options] [...] [--] ...
. Actually this doesn't work either.--
do then? I think the usage makes sense as follows, and this PR is trying to achieve this
cargo lockbud [args for lockbud] [--] [args for cargo build]
e.g.
cargo +nightly-2024-05-21 lockbud -k all -- --target riscv64gc-unknown-none-elf
cargo +nightly-2024-05-21 lockbud -k all -- --target riscv64gc-unknown-none-elf -- args-to-the-compiled-binary
p.s. `cargo +nightly-2024-05-21` is from cargo, not from cargo lockbud. It demonstrates
the canonical command to be used as real detection on projects.
Thanks for your fixing. There is indeed something wrong with my previous cargo parameter parsing logic.
As per the usage, stuff behind
--
are passed tocargo build
, so this commit fixes this.