chore: Rename --labels flag of repo announce command to --label

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-08 12:25:06 +00:00
parent ce58f29022
commit 6aac4b7a85

View File

@@ -45,9 +45,9 @@ pub struct AnnounceArgs {
/// Additional maintainers of the repository (besides yourself). /// Additional maintainers of the repository (besides yourself).
#[arg(short, long)] #[arg(short, long)]
maintainers: Vec<PublicKey>, maintainers: Vec<PublicKey>,
/// Labels to categorize the repository. /// Labels to categorize the repository. Can be specified multiple times.
#[arg(short, long)] #[arg(short, long)]
labels: Vec<String>, label: Vec<String>,
} }
impl CommandRunner for AnnounceArgs { impl CommandRunner for AnnounceArgs {
@@ -67,7 +67,7 @@ impl CommandRunner for AnnounceArgs {
self.clone, self.clone,
options.relays.clone(), options.relays.clone(),
maintainers, maintainers,
self.labels.into_iter().map(utils::str_trim).collect(), self.label.into_iter().map(utils::str_trim).collect(),
)? )?
.pow(options.pow) .pow(options.pow)
.build(user_pubk); .build(user_pubk);