From 62b6405685aa8a2a125d65a6725ef3f1ef35860f Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Tue, 3 May 2022 22:10:18 +0200 Subject: [PATCH] Fix clap deprecation warnings --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index c7bf0aa..ffef863 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -10,12 +10,12 @@ use crate::types::{ColorOptions, PlatformType}; // to improve readability and allow contributors to grep names like "clear-cache" #[derive(Parser, Debug)] #[clap(about = "A fast TLDR client", author, version)] -#[clap(setting = AppSettings::ArgRequiredElseHelp)] -#[clap(setting = AppSettings::DeriveDisplayOrder)] -#[clap(setting = AppSettings::DisableColoredHelp)] #[clap( after_help = "To view the user documentation, please visit https://dbrgn.github.io/tealdeer/." )] +#[clap(setting = AppSettings::DeriveDisplayOrder)] +#[clap(arg_required_else_help(true))] +#[clap(disable_colored_help(true))] #[clap(group = ArgGroup::new("command_or_file").args(&["command", "render"]))] pub(crate) struct Args { /// The command to show (e.g. `tar` or `git log`)