diff --git a/README.md b/README.md index f0a1f85..bf225b7 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ cargo clippy ### Download puzzle inputs via aoc-cli -1. Install [`aoc-cli`](https://github.com/scarvalhojr/aoc-cli/) via cargo: `cargo install aoc-cli`. +1. Install [`aoc-cli`](https://github.com/scarvalhojr/aoc-cli/) via cargo: `cargo install aoc-cli --version 0.5.0`. 2. Create an `.adventofcode.session` file in your home directory and paste your session cookie[^1] into it. To get this, press F12 anywhere on the Advent of Code website to open your browser developer tools. Look in your Cookies under the Application or Storage tab, and copy out the `session` cookie value. Once installed, you can use the [download command](#download-input-for-a-day). diff --git a/src/bin/download.rs b/src/bin/download.rs index 85caa84..edb567d 100644 --- a/src/bin/download.rs +++ b/src/bin/download.rs @@ -64,7 +64,7 @@ fn main() { } cmd_args.append(&mut vec![ - "--file".into(), + "--input-file".into(), tmp_file_path.to_string_lossy().to_string(), "--day".into(), args.day.to_string(),