cargo-aoc icon indicating copy to clipboard operation
cargo-aoc copied to clipboard

Allow running specific (/last) day (and/or part) from the regular executable

Open idanarye opened this issue 4 years ago • 1 comments

cargo aoc is running the last day by default and has flags for choosing which year/day/part to run. But the executable itself does not have these flags, and it'll always run all the days.

It would be convenient to give the executable the ability to run specific days, so that we could use cargo run -- -d13 or cargo run -- --last-day (new flag, in case you want to keep the old behavior when no flags are given) instead of cargo aoc. cargo run is more convenient since it is more customisable (I mainly care about the --quiet flag), does not rebuild in release mode on every run.

idanarye avatar Dec 03 '20 17:12 idanarye

It is maybe because i am still new to rust and cargo, but i feel it is a good thing to have. I was lookign for it too in order to spawn the exe from VS code to debug

galop1n avatar Dec 06 '21 22:12 galop1n