mirror of
https://github.com/clap-rs/clap
synced 2024-09-20 14:31:58 +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
23 lines
548 B
TOML
23 lines
548 B
TOML
[package]
|
|
|
|
name = "clap"
|
|
version = "0.7.6"
|
|
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
|
exclude = ["docs/*", "examples/*", "claptests/*"]
|
|
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
|
|
repository = "https://github.com/kbknapp/clap-rs.git"
|
|
documentation = "http://kbknapp.github.io/clap-rs"
|
|
readme = "README.md"
|
|
|
|
keywords = ["argument", "command", "arg", "parser", "parse"]
|
|
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
strsim = "*"
|
|
|
|
[features]
|
|
default=[]
|
|
|
|
# for building with nightly and unstable features
|
|
unstable=[]
|