string[] appears only for flags declared repeatable (--set k=v --set k2=v2),
and only when parsed by parseArgs, which knows the declaration. The
single-value accessors below (str, num, list, bool) read the array as
its last element or ignore it, so a repeatable flag is still usable through
them when only the final value matters.
Parsed flag values.
string[]appears only for flags declared repeatable (--set k=v --set k2=v2), and only when parsed byparseArgs, which knows the declaration. The single-value accessors below (str,num,list,bool) read the array as its last element or ignore it, so a repeatable flag is still usable through them when only the final value matters.