Closed hadmut closed 1 year ago
Hi,
would be nice to have an option type to choose one of a given set opf alternatives. e.g.
method_option :fruit, type: :selection, values: [ :apple, :orange, :banana ]
and then call a program with examplebin --banana
regards
hi @hadmut, You should be able to do the following:
method_option :fruit, type: :string, enum: %w(apple orange banana)
Hi,
would be nice to have an option type to choose one of a given set opf alternatives. e.g.
method_option :fruit, type: :selection, values: [ :apple, :orange, :banana ]
and then call a program with examplebin --banana
regards