Help: Add a link to the online docs

This commit is contained in:
Danilo Bargen 2021-10-17 22:20:39 +02:00
commit 371f1d2ace
2 changed files with 5 additions and 0 deletions

View file

@ -26,3 +26,5 @@ OPTIONS:
--color <WHEN> Control whether to use color [always, auto, never]
-v, --version Print the version
-h, --help Print help information
To view the user documentation, please visit https://dbrgn.github.io/tealdeer/.

View file

@ -56,6 +56,9 @@ const PAGER_COMMAND: &str = "less -R";
#[clap(setting = AppSettings::ArgRequiredElseHelp)]
#[clap(setting = AppSettings::HelpRequired)]
#[clap(setting = AppSettings::DeriveDisplayOrder)]
#[clap(
after_help = "To view the user documentation, please visit https://dbrgn.github.io/tealdeer/."
)]
struct Args {
/// The command to show (e.g. `tar` or `git log`)
#[clap(min_values = 1)]