diff --git a/2022/README.md b/2022/README.md new file mode 100644 index 0000000..b4c59e0 --- /dev/null +++ b/2022/README.md @@ -0,0 +1,20 @@ +# Advent of Code 2022 + +Another year and another Advent of Code in Rust. Because last year went so well, this time we'll be +aiming for a total time of under 250ms. + +```console +$ target/release/aoc_2022 --help +Advent of Code 2022 runner + +Usage: aoc_2022 [OPTIONS] + +Arguments: + Which day to run + +Options: + -t, --time Print time taken + -2, --part2 Run part 2 instead of part 1 + -i, --input Read input from the given file instead of stdin + -h, --help Print help information +``` diff --git a/2022/src/main.rs b/2022/src/main.rs index 86dc88e..1369f8d 100644 --- a/2022/src/main.rs +++ b/2022/src/main.rs @@ -9,7 +9,7 @@ use clap::Parser; use aoc_2022::get_implementation; -/// Advent of Code 2021 runner +/// Advent of Code 2022 runner #[derive(Parser)] struct Opts { /// Which day to run diff --git a/README.md b/README.md index bc26309..aff022f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Advent of Code -[![Advent of Code 2021](https://github.com/bertptrs/adventofcode/actions/workflows/2021.yml/badge.svg)](https://github.com/bertptrs/adventofcode/actions/workflows/2021.yml) +[![Advent of Code 2021](https://github.com/bertptrs/adventofcode/actions/workflows/2022.yml/badge.svg)](https://github.com/bertptrs/adventofcode/actions/workflows/2022.yml) This repository contains my solutions for Advent of Code. See: @@ -11,3 +11,4 @@ This repository contains my solutions for Advent of Code. See: - [2019 edition](./2019) - [2020 edition](./2020) - [2021 edition](./2021) +- [2022 edition](./2022)