Skip to content

Commit

Permalink
Tweak wording of deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunyho committed Jun 11, 2023
1 parent 28721b6 commit 0bdb56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl TereSettings {
} else if args.get_flag("normal-search-anywhere") {
ret.gap_search_mode = GapSearchMode::NormalSearchAnywhere;
} else if args.get_flag("no-gap-search") {
warnings.push("The option 'no-gap-search' has been renamed to 'normal-search', please use that instead.");
warnings.push("The option '--no-gap-search' has been renamed to '--normal-search', please use that instead.");
ret.gap_search_mode = GapSearchMode::NormalSearch;
}

Expand Down Expand Up @@ -715,7 +715,7 @@ mod tests {
"--no-gap-search"
]);
assert_eq!(warnings.len(), 1);
assert!(warnings[0].contains("'no-gap-search' has been renamed"));
assert!(warnings[0].contains("'--no-gap-search' has been renamed"));
assert!(settings.gap_search_mode == GapSearchMode::NormalSearch);
}

Expand Down

0 comments on commit 0bdb56d

Please sign in to comment.