refactor: More sensible CLI structure

This commit is contained in:
Vincent Ambo 2017-10-20 13:13:29 +02:00 committed by Karl Erik Asbjørnsen
parent 79a27f8f0d
commit 23ac0eef87

View file

@ -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));