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:
parent
ab91e4b874
commit
68fa50709e
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user