mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
06e869b518
If an argument is not understood as subcommand, but has a high-confidence match in the list of all known subcommands, we will use this one to print a customized error message. Previously, it would say that a positional argument wasn't understood, now it will say that a subcommand was unknown, and if the user meant `high-confidence-candidate`. If the argument doesn't sufficiently match any subcommand, the default handling will take over and try to treat it as positional argument. * added dependency to `strsym` crate * new `did_you_mean` function uses `strsim::jaro_winkler(...)` to look for good candidates. Related to #103 |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml | ||
Makefile | ||
run_tests.py |