From 2a5f5af934f3d0aa0793f2c9b5d75e74fe8182d2 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 5 Dec 2018 13:29:31 +0200 Subject: [PATCH] Don't use help in structopt --- src/config.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/config.rs b/src/config.rs index 4b08a40b..aaab2663 100644 --- a/src/config.rs +++ b/src/config.rs @@ -50,27 +50,27 @@ impl Config { #[derive(StructOpt, Debug)] #[structopt(name = "Topgrade")] pub struct Opt { - #[structopt(short = "t", long = "tmux", help = "Run inside tmux")] + /// Run inside tmux + #[structopt(short = "t", long = "tmux")] pub run_in_tmux: bool, - #[structopt(short = "c", long = "cleanup", help = "Cleanup temporary or old files")] + /// Cleanup temporary or old files + #[structopt(short = "c", long = "cleanup")] pub cleanup: bool, - #[structopt(long = "no-system", help = "Don't perform system upgrade")] + /// Don't perform system upgrade + #[structopt(long = "no-system")] pub no_system: bool, - #[structopt( - long = "no-git-repos", - help = "Don't perform updates on configured git repos" - )] + /// Don't perform updates on configured git repos + #[structopt(long = "no-git-repos")] pub no_git_repos: bool, - #[structopt( - long = "no-emacs", - help = "Don't upgrade Emacs packages or configuration files" - )] + /// Don't upgrade Emacs packages or configuration files + #[structopt(long = "no-emacs")] pub no_emacs: bool, - #[structopt(short = "n", long = "dry-run", help = "Print what would be done")] + /// Print what would be done + #[structopt(short = "n", long = "dry-run")] pub dry_run: bool, }