1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-29 22:01:04 +02:00

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> {
// Get all of the arguments, being careful to require valid UTF-8.
let mut argv = vec![];
for arg in env::args_os().skip(1) {
for arg in env::args_os() {
match arg.into_string() {
Ok(s) => argv.push(s),
Err(s) => {