shorten cli entry command derive
This commit is contained in:
parent
69b6bf9d0f
commit
283c6a7dd6
1 changed files with 1 additions and 3 deletions
|
@ -6,9 +6,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(version)]
|
#[command(version, author, about)]
|
||||||
#[command(author)]
|
|
||||||
#[command(about)]
|
|
||||||
struct Cli {
|
struct Cli {
|
||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue