mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-01-19 05:49:14 +02:00
0c298f60a6
This commit updates clap to v2.23.0 The update contained a bug fix in clap that results in broken code in ripgrep. ripgrep was relying on the bug, but this commit fixes that issue. The bug centered around not being able to override the auto-generated help message by supplying a flag with a long of `help`. Normally, supplying a flag with a long of `help` means whenever the user passes `--help`, the consuming code (e.g. ripgrep) is responsible for displaying the help message. However, due to the bug in clap this wasn't necessary for ripgrep to do unless the user passed `-h`. With the bug fixed, it meant the user passing `--help` and clap expected ripgrep to display the help, yet ripgrep expected clap to display the help. This has been fixed in this commit of ripgrep. All well now! v2.23.0 also brings the abilty to use `Arg::help` or `Arg::long_help` allowing one to distinguish between `-h` and `--help`. This commit leaves all doc strings in the `lazy_static!` hashmap however only for aesthetic reasons. This means all home rolled handling of `-h`/`--help` has been removed from ripgrep, yet functionality *and* appearances are 100% the same.
56 lines
1.3 KiB
TOML
56 lines
1.3 KiB
TOML
[package]
|
|
name = "ripgrep"
|
|
version = "0.5.0" #:version
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
description = """
|
|
Line oriented search tool using Rust's regex library. Combines the raw
|
|
performance of grep with the usability of the silver searcher.
|
|
"""
|
|
documentation = "https://github.com/BurntSushi/ripgrep"
|
|
homepage = "https://github.com/BurntSushi/ripgrep"
|
|
repository = "https://github.com/BurntSushi/ripgrep"
|
|
readme = "README.md"
|
|
keywords = ["regex", "grep", "egrep", "search", "pattern"]
|
|
categories = ["command-line-utilities", "text-processing"]
|
|
license = "Unlicense/MIT"
|
|
exclude = ["HomebrewFormula"]
|
|
build = "build.rs"
|
|
|
|
[[bin]]
|
|
bench = false
|
|
path = "src/main.rs"
|
|
name = "rg"
|
|
|
|
[[test]]
|
|
name = "integration"
|
|
path = "tests/tests.rs"
|
|
|
|
[dependencies]
|
|
atty = "0.2.2"
|
|
bytecount = "0.1.4"
|
|
clap = "2.23.1"
|
|
encoding_rs = "0.5.0"
|
|
env_logger = { version = "0.4", default-features = false }
|
|
grep = { version = "0.1.5", path = "grep" }
|
|
ignore = { version = "0.1.7", path = "ignore" }
|
|
lazy_static = "0.2"
|
|
libc = "0.2"
|
|
log = "0.3"
|
|
memchr = "1"
|
|
memmap = "0.5"
|
|
num_cpus = "1"
|
|
regex = "0.2.1"
|
|
same-file = "0.1.1"
|
|
termcolor = { version = "0.3.0", path = "termcolor" }
|
|
|
|
[build-dependencies]
|
|
clap = "2.23.1"
|
|
lazy_static = "0.2"
|
|
|
|
[features]
|
|
avx-accel = ["bytecount/avx-accel"]
|
|
simd-accel = ["bytecount/simd-accel", "regex/simd-accel"]
|
|
|
|
[profile.release]
|
|
debug = true
|