From 64bc296d623d0df5776b75a4451c9101a5186cac Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Wed, 5 Oct 2022 11:41:11 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=8E=A8=20Update=20derive=20at?= =?UTF-8?q?tributes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8acee28..b84727a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,13 +26,14 @@ mod utils; const DEFAULT_EXPORT_FILE: &str = "export-esp.ps1"; #[cfg(not(windows))] const DEFAULT_EXPORT_FILE: &str = "export-esp.sh"; - #[derive(Parser)] -#[clap(name = "espup")] -#[clap(bin_name = "espup")] -#[clap(arg_required_else_help(true))] -#[clap(version)] -#[clap(about)] +#[command( + name = "espup", + bin_name = "espup", + version, + about, + arg_required_else_help(true) +)] struct Cli { #[command(subcommand)] subcommand: SubCommand,