add --kind flag, it allows you to configure the lottery kind directly, skipping the selection prompt

update the README with more examples.
This commit is contained in:
2026-07-24 13:11:56 +01:00
parent 3f0af6e5ec
commit 1310447664
4 changed files with 65 additions and 26 deletions

View File

@@ -25,6 +25,9 @@ func ParseKind(kind string) (Kind, error) {
case "powerball":
return KindPowerball, nil
default:
return "", fmt.Errorf("invalid lottery kind: %s", kind)
return "", fmt.Errorf(
"invalid lottery kind: %s, must be one of: lotto, euromillions, setforlife, thunderball, powerball",
kind,
)
}
}