From 8213ddaf465de47d100da7ccf4414360d40d1ca8 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 1 Jun 2025 15:06:30 -0500 Subject: [PATCH] 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. --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 607e85e..a4c6890 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -18,7 +18,7 @@ pub enum Commands { CreateRelease { #[arg()] body: String, - #[arg(short, long, default_value_t = false)] + #[arg(short, long)] draft: bool, #[arg()] name: String, @@ -32,7 +32,7 @@ pub enum Commands { UploadRelease { #[arg()] tag_name: String, - #[arg(short, long, default_value_t = false)] + #[arg(short, long)] create: bool, #[arg()] files: Vec,