Don't skip the first arg.

Docopt will do it for us.
This commit is contained in:
Andrew Gallant
2016-09-11 13:33:25 -04:00
parent ab91e4b874
commit 68fa50709e

View File

@@ -384,7 +384,7 @@ impl Args {
pub fn parse() -> Result<Args> { pub fn parse() -> Result<Args> {
// Get all of the arguments, being careful to require valid UTF-8. // Get all of the arguments, being careful to require valid UTF-8.
let mut argv = vec![]; let mut argv = vec![];
for arg in env::args_os().skip(1) { for arg in env::args_os() {
match arg.into_string() { match arg.into_string() {
Ok(s) => argv.push(s), Ok(s) => argv.push(s),
Err(s) => { Err(s) => {