1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-03 14:32:22 +02:00
Andrew Gallant 56af4d4a74
cli: add simple flag suggestions
We look for similar flag names via Jaccard index on ngrams. In my
experience this tends to work better than Levenshtein or other edit
distance based metrics. Principally because it allows for out-of-order
suggestions. For example, --case-smart will result in a suggestion for
--smart-case, even though the edit distance between them is pretty big.

This is something Clap did for us. I initially thought it wasn't
necessary to add this back in, but I realized it wouldn't be much work
and might actually be helpful to folks.
2023-11-26 09:55:44 -05:00
..
2023-11-26 09:55:44 -05:00
2023-11-20 23:51:53 -05:00
2023-10-09 20:29:52 -04:00
2023-10-09 20:29:52 -04:00
2023-11-25 15:03:53 -05:00