mirror of
https://github.com/chmln/sd
synced 2024-11-26 04:50:22 +00:00
Tweak flags and help output
This commit is contained in:
parent
913a215120
commit
62c0056418
1 changed files with 5 additions and 2 deletions
|
@ -5,8 +5,11 @@ use structopt::StructOpt;
|
|||
#[structopt(
|
||||
// hide author from help
|
||||
author = "",
|
||||
about = "",
|
||||
raw(setting = "structopt::clap::AppSettings::ColoredHelp"),
|
||||
raw(setting = "structopt::clap::AppSettings::NextLineHelp")
|
||||
raw(setting = "structopt::clap::AppSettings::NextLineHelp"),
|
||||
raw(setting = "structopt::clap::AppSettings::DisableVersion"),
|
||||
raw(setting = "structopt::clap::AppSettings::UnifiedHelpMessage"),
|
||||
)]
|
||||
pub(crate) struct Options {
|
||||
/// The path to file. The file contents will be transformed in-place.
|
||||
|
@ -17,7 +20,7 @@ pub(crate) struct Options {
|
|||
#[structopt(short = "s", long = "string-mode")]
|
||||
literal_mode: bool,
|
||||
|
||||
/// The regexp or string (if --literal) to search for.
|
||||
/// The regexp or string (if -s) to search for.
|
||||
find: String,
|
||||
|
||||
/// What to replace each match with. Unless in string mode, you may
|
||||
|
|
Loading…
Reference in a new issue