endoli / commands.rs

A command system for Rust.
https://endoli.github.io/commands.rs/commands/
Apache License 2.0
18 stars 2 forks source link

Create tokens from argv #6

Open waywardmonkeys opened 8 years ago

waywardmonkeys commented 8 years ago

We should have a way to create tokens from argv for handling feeding the Parser from the command line.

wvdschel commented 8 years ago

I'll take a look at this tonight.

wvdschel commented 8 years ago

So, say I have a function that turns the command line arguments into a Vec.

Where would it be best to put this function and what should it be named? Should it insert whitespace tokens in between command line arguments? Should it do anything to wrap multiword arguments into quotes?