aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/diff_options.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diff_options.rs b/src/diff_options.rs
index 3c19634..2a5edcb 100644
--- a/src/diff_options.rs
+++ b/src/diff_options.rs
@@ -118,12 +118,12 @@ static FLAGS: [&'static str; 98] = [
pub fn parse(args: &[String]) -> (Vec<&String>, Vec<&String>) {
let mut program_args = Vec::new();
- let mut found_args = Vec::new();
+ let mut diff_args = Vec::new();
'args: for arg in args {
for flag in FLAGS.iter() {
if arg.starts_with(flag) {
- found_args.push(arg);
+ diff_args.push(arg);
continue 'args;
}
@@ -132,7 +132,7 @@ pub fn parse(args: &[String]) -> (Vec<&String>, Vec<&String>) {
program_args.push(arg)
}
- (program_args, found_args)
+ (program_args, diff_args)
}