refactor: More sensible CLI structure
This commit is contained in:
parent
79a27f8f0d
commit
23ac0eef87
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,6 @@ fn main() {
|
||||||
let inspect = SubCommand::with_name("inspect")
|
let inspect = SubCommand::with_name("inspect")
|
||||||
.about("inspect details about a queue")
|
.about("inspect details about a queue")
|
||||||
.arg(Arg::with_name("queue")
|
.arg(Arg::with_name("queue")
|
||||||
.short("q")
|
|
||||||
.required(true)
|
.required(true)
|
||||||
.takes_value(true));
|
.takes_value(true));
|
||||||
|
|
||||||
|
@ -72,10 +71,12 @@ fn main() {
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("max-size")
|
.arg(Arg::with_name("max-size")
|
||||||
.help("maximum message size (in kB)")
|
.help("maximum message size (in kB)")
|
||||||
|
.long("max-size")
|
||||||
.required(true)
|
.required(true)
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("max-pending")
|
.arg(Arg::with_name("max-pending")
|
||||||
.help("maximum # of pending messages")
|
.help("maximum # of pending messages")
|
||||||
|
.long("max-pending")
|
||||||
.required(true)
|
.required(true)
|
||||||
.takes_value(true));
|
.takes_value(true));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue