Skip to content

Commit

Permalink
🐛 Reverse use_example flag to input kind resolution to be correct
Browse files Browse the repository at this point in the history
  • Loading branch information
bucsi committed Jul 9, 2024
1 parent e83d690 commit eb6fb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gladvent/internal/cmd/run.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ pub fn run_command() -> glint.Command(Result(List(String))) {
let assert Ok(year) = glint.get_flag(flags, cmd.year_flag())
let assert Ok(allow_crash) = glint.get_flag(flags, allow_crash_flag())
let assert Ok(use_example) = case glint.get_flag(flags, use_example_flag()) {
Ok(True) -> Ok(input.Puzzle)
Ok(False) -> Ok(input.Example)
Error(a) -> Error(a)
Ok(True) -> Ok(input.Example)
_ -> Ok(input.Puzzle)
}

let spinner =
Expand Down

0 comments on commit eb6fb79

Please sign in to comment.