mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 07:10:36 +00:00
refactor: 🎨 Update derive attributes
This commit is contained in:
parent
cb8bee29ae
commit
64bc296d62
13
src/main.rs
13
src/main.rs
@ -26,13 +26,14 @@ mod utils;
|
|||||||
const DEFAULT_EXPORT_FILE: &str = "export-esp.ps1";
|
const DEFAULT_EXPORT_FILE: &str = "export-esp.ps1";
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
const DEFAULT_EXPORT_FILE: &str = "export-esp.sh";
|
const DEFAULT_EXPORT_FILE: &str = "export-esp.sh";
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[clap(name = "espup")]
|
#[command(
|
||||||
#[clap(bin_name = "espup")]
|
name = "espup",
|
||||||
#[clap(arg_required_else_help(true))]
|
bin_name = "espup",
|
||||||
#[clap(version)]
|
version,
|
||||||
#[clap(about)]
|
about,
|
||||||
|
arg_required_else_help(true)
|
||||||
|
)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
subcommand: SubCommand,
|
subcommand: SubCommand,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user