Skip to content

Commit c0bf243

Browse files
committed
Allow negative priorities passed like cratesfyi queue add foobar 0.1.0 --priority -10
1 parent 9120a37 commit c0bf243

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/cratesfyi.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ enum QueueSubcommand {
201201
name = "BUILD_PRIORITY",
202202
short = 'p',
203203
long = "priority",
204-
default_value = "5"
204+
default_value = "5",
205+
allow_negative_numbers = true
205206
)]
206207
build_priority: i32,
207208
},
@@ -249,6 +250,7 @@ enum PrioritySubcommand {
249250
#[arg(name = "PATTERN")]
250251
pattern: String,
251252
/// The priority to give crates matching the given `PATTERN`
253+
#[arg(allow_negative_numbers = true)]
252254
priority: i32,
253255
},
254256

0 commit comments

Comments
 (0)