#1095·gum

gum choose --limit-min should be reassessed now multi-select can be empty

Author: haumamiCreated Jul 8, 2026Updated Sep 8, 2026

Description

Due to https://github.com/charmbracelet/gum/issues/87#issuecomment-1447314593, https://github.com/charmbracelet/gum/issues/152 should be reassesed.

When you ask input for a multiselect choice, sometimes you need to enforce at least one answer, but currently there is no way, you can leave it empty and press enter. Then you need some boilerplate code to check the answer and loop again.

I think --limit-min/--min-limit is totally justified at least for multi-selects.

For instance

Pick the flavour of ice cream:

  • Strawberry
  • Watermelon
  • Coconut

There no point on empty ice cream, but there is a point on an ice cream with 2 balls of different flavours

Version

0.17.0

Environment

MacOs