Drop default-false for flag arguments

These arguments don't accept a value, they *are* the value. Presence or
absence tells the program everything it needs, so there's no point in
setting a default.
This commit is contained in:
2025-06-01 15:06:30 -05:00
parent bbf1eecc52
commit 8213ddaf46

View File

@@ -18,7 +18,7 @@ pub enum Commands {
CreateRelease { CreateRelease {
#[arg()] #[arg()]
body: String, body: String,
#[arg(short, long, default_value_t = false)] #[arg(short, long)]
draft: bool, draft: bool,
#[arg()] #[arg()]
name: String, name: String,
@@ -32,7 +32,7 @@ pub enum Commands {
UploadRelease { UploadRelease {
#[arg()] #[arg()]
tag_name: String, tag_name: String,
#[arg(short, long, default_value_t = false)] #[arg(short, long)]
create: bool, create: bool,
#[arg()] #[arg()]
files: Vec<String>, files: Vec<String>,