fspoettel / advent-of-code-rust

🎄Starter template for solving Advent of Code in Rust.
MIT License
715 stars 53 forks source link

cargo day 01 does not work #2

Closed peteanning closed 2 years ago

peteanning commented 2 years ago

Tried cargo day 01 having created day 01 with cargo scaffold 1

Also tried adding the missing alias

[aliase]
day = "run --bin --"

But no joy I get

cargo day 01
error: "--bin" takes one argument.
Available binaries:
    01
    aoc
    download
    scaffold
peteanning commented 2 years ago

This is not an alias definition problem just one of documentation. cargo solve day 01 would do the same as cargo day 01 if the alias were defined as a duplicate of solve

[alias]
day = "run --bin"
solve = "run --bin"

As it probably doesn't make sense to have duplicate aliases