holmgr / cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo
MIT License
693 stars 31 forks source link

change precedence of stamp flag to be higher than time flag #42

Closed djdv closed 3 years ago

djdv commented 3 years ago

Following https://github.com/holmgr/cargo-sweep/issues/41#issuecomment-681303403 This moves the handling of -s to execute and return before trying to handle other arguments such as -t.

Fixes: https://github.com/holmgr/cargo-sweep/issues/41

Eh2406 commented 3 years ago

Thanks for the PR! Glad this fixed the -s use case. Having slept on it I'm wondering if the -i use case is similarly broken, that may require more of a fix. Happy to advice if you want to look into it.