Procházet zdrojové kódy

fix: compatibility with aoc-cli@^0.5.0

closes #11
Felix Spöttel před 1 rokem
rodič
revize
7d663f1407
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      README.md
  2. 1 1
      src/bin/download.rs

+ 1 - 1
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).

+ 1 - 1
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(),