aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2019-12-06 15:44:13 +1000
committerGravatar alecdwm 2019-12-06 15:44:13 +1000
commitc2bbb90cb0ea64888c1b972d680cf67873643108 (patch)
tree427f3ad0724011f4df6d298cf22024ba14bec875
parent76a7b1278b73c113491b7a98b2750ceec5377510 (diff)
fixed cli
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 5ecd329..33f0daa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -30,7 +30,7 @@ fn main() {
puzzle_solutions.insert("2019::day5::part1", advent_of_code::year_2019::day5::part1);
puzzle_solutions.insert("2019::day5::part2", advent_of_code::year_2019::day5::part2);
- let command = match env::args().nth(2) {
+ let command = match env::args().nth(1) {
Some(command) => command,
None => {
eprintln!(