zcdziura / pirate

A command-line arrrrguments parser, written in Rust.
25 stars 1 forks source link

Updated `env::args().collect()` to output a Vec #4

Closed joelself closed 8 years ago

joelself commented 8 years ago

As discussed in issue #3 It seems collect defaults to collecting into an array which doesn't work with a collection of Strings because Strings vary in size and their size cannot be known at compile time. To work around this I collect the args into a Vec instead and pass that in. Also I think the first call to matches was missing an & on the args (first) parameter.