onur / cargo-license

Cargo subcommand to see license of dependencies
MIT License
418 stars 37 forks source link

add `--root-only` #54

Closed good-praxis closed 2 years ago

good-praxis commented 2 years ago

(Either merge #53 first or just merge this one)

The reason I opted to create this little freebie opt is because this is what --no-deps would've done on cargo metadata directly. However the way cargo metadata handles --no-deps breaks this crate, therefore we implement a little bit of custom logic to handle this case ourselves.

good-praxis commented 2 years ago

if merged this PR also resolve https://github.com/onur/cargo-license/issues/47 and resolve https://github.com/onur/cargo-license/issues/52

good-praxis commented 2 years ago

if merged this PR also resolve #47 and resolve #52

dalance commented 2 years ago

I think this can be merged instead of #53. Thank you for your contribution.