How would I do the equivalent of
'in_dir=s' => \@in_dirs
from Perl's Getopt::Long, i.e., a case where--in_dir
was used multiple times.
Manually, by capturing values in an intermediate list:
var dirs = new List<string> ();
var options = new OptionSet {
{ "in_dir=", v => dirs.Add (v) },
};
var unmatched = options.Parse(new[]{
"--in_dir", "A",