gobanos / cargo-aoc

447 stars 47 forks source link

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

Open idanarye opened 3 years ago

idanarye commented 3 years ago

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.

galop1n commented 2 years ago

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