Don't use help in structopt
This commit is contained in:
@@ -50,27 +50,27 @@ impl Config {
|
|||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt, Debug)]
|
||||||
#[structopt(name = "Topgrade")]
|
#[structopt(name = "Topgrade")]
|
||||||
pub struct Opt {
|
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,
|
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,
|
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,
|
pub no_system: bool,
|
||||||
|
|
||||||
#[structopt(
|
/// Don't perform updates on configured git repos
|
||||||
long = "no-git-repos",
|
#[structopt(long = "no-git-repos")]
|
||||||
help = "Don't perform updates on configured git repos"
|
|
||||||
)]
|
|
||||||
pub no_git_repos: bool,
|
pub no_git_repos: bool,
|
||||||
|
|
||||||
#[structopt(
|
/// Don't upgrade Emacs packages or configuration files
|
||||||
long = "no-emacs",
|
#[structopt(long = "no-emacs")]
|
||||||
help = "Don't upgrade Emacs packages or configuration files"
|
|
||||||
)]
|
|
||||||
pub no_emacs: bool,
|
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,
|
pub dry_run: bool,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user