Add note about short and long help text, closes #286

This commit is contained in:
sharkdp 2019-01-01 17:40:30 +01:00
parent a17a3fe5ef
commit 985fab16bb
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ pub fn build_app() -> App<'static, 'static> {
.usage("fd [FLAGS/OPTIONS] [<pattern>] [<path>...]")
.setting(AppSettings::ColoredHelp)
.setting(AppSettings::DeriveDisplayOrder)
.after_help("Note: `fd -h` prints a short and concise overview while `fd --help` \
gives all details.")
.arg(arg("hidden").long("hidden").short("H"))
.arg(arg("no-ignore").long("no-ignore").short("I"))
.arg(arg("no-ignore-vcs").long("no-ignore-vcs"))