rust-secure-code / cargo-supply-chain

Gather author, contributor and publisher data on crates in your dependency graph.
Apache License 2.0
315 stars 18 forks source link

Handle invalid arguments #31

Closed dutt closed 3 years ago

dutt commented 3 years ago

It seems the call to free() is required to make sure we don't get any extra arguments we don't expect.

With this code I get this instead:

./target/debug/cargo-supply-chain crates --blargh
Error: unused arguments left: --blargh
Usage: cargo supply-chain COMMA..