From 6aac4b7a85b3ae78c1bf92efed78961c50b81bc3 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Thu, 8 May 2025 12:25:06 +0000
Subject: [PATCH] chore: Rename `--labels` flag of `repo announce` command to
`--label`
Signed-off-by: Awiteb
---
src/cli/repo/announce.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cli/repo/announce.rs b/src/cli/repo/announce.rs
index e06aa53..82dab92 100644
--- a/src/cli/repo/announce.rs
+++ b/src/cli/repo/announce.rs
@@ -45,9 +45,9 @@ pub struct AnnounceArgs {
/// Additional maintainers of the repository (besides yourself).
#[arg(short, long)]
maintainers: Vec,
- /// Labels to categorize the repository.
+ /// Labels to categorize the repository. Can be specified multiple times.
#[arg(short, long)]
- labels: Vec,
+ label: Vec,
}
impl CommandRunner for AnnounceArgs {
@@ -67,7 +67,7 @@ impl CommandRunner for AnnounceArgs {
self.clone,
options.relays.clone(),
maintainers,
- self.labels.into_iter().map(utils::str_trim).collect(),
+ self.label.into_iter().map(utils::str_trim).collect(),
)?
.pow(options.pow)
.build(user_pubk);