% ADVENT-OF-CODE(1) Version 2024.21.0
advent-of-code — CLI for solving Advent of Code problems
| advent-of-code [year] [day] [part] < [input-file] | advent-of-code [-h|--help|-v|--version]
Solves Advent of Code (https://adventofcode.com) problems.
The year, day and part is specified as program arguments.
The problem input should be supplied on stdin (see example).
-h, --help
: Prints brief usage information.
-v, --version
: Prints the current version number.
Solve the second part of the first day in 2022:
advent-of-code 2022 1 2 < path/to/input-file.txt
Bugs can be reported on GitHub: https://github.com/fornwall/advent-of-code/issues
Fredrik Fornwall <fredrik@fornwall.net>