From 7d663f1407d6879d6e9307bac03e26b28c9fa072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Tue, 29 Nov 2022 14:08:49 +0100 Subject: [PATCH] fix: compatibility with aoc-cli@^0.5.0 closes #11 --- README.md | 2 +- src/bin/download.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(),