Init a new OptionEnum from values with a help message and names.

default is the index of the default value in values.

Property definitions

opts $ OptionEnum :: defaultinit
	# Init a new OptionEnum from `values` with a `help` message and `names`.
	#
	# `default` is the index of the default value in `values`.
	init(values: Array[String], help: String, default: Int, names: String...) is old_style_init do
		assert values.length > 0
		self.values = values.to_a
		super("{help} <{values.join(", ")}>", default, names)
	end
lib/opts/opts.nit:200,2--207,4