Improve help text

This commit is contained in:
finga 2021-06-27 02:56:31 +02:00
parent d88d69bbb1
commit f0fb50bc24
3 changed files with 4 additions and 4 deletions

View file

@ -71,8 +71,8 @@ optional arguments are supported:
- `-n`, `--non-blocking`: Do not block - `-n`, `--non-blocking`: Do not block
- `-d`, `--deadline <deadline>`: Deadline until messages are sent - `-d`, `--deadline <deadline>`: Deadline until messages are sent
(format: `%Y-%m-%d %H:%M:%S`) (format: `%Y-%m-%d %H:%M:%S`)
- `-p`, `--priority <priority>`: Use priority PRIO, PRIO >= 0 - `-p`, `--priority <priority>`: Set a different priority than
[default: 0] default, priority >= 0 [default: 0]
- `-o`, `--timeout <timeout>`: As for example in "5h 23min 42ms" - `-o`, `--timeout <timeout>`: As for example in "5h 23min 42ms"
### Receive a message from a queue ### Receive a message from a queue

2
mqrs.1
View file

@ -160,7 +160,7 @@ Produce verbose output
Deadline until messages are received (format: "%Y-%m-%d %H:%M:%S") Deadline until messages are received (format: "%Y-%m-%d %H:%M:%S")
.TP 8 .TP 8
.B \-p, \-\-priority \fI<priority>\fP .B \-p, \-\-priority \fI<priority>\fP
Use priority PRIO, PRIO >= 0 [default: 0] Set a different priority than default, priority >= 0 [default: 0]
.TP 8 .TP 8
.B \-o, \-\-timeout \fI<timeout>\fP .B \-o, \-\-timeout \fI<timeout>\fP
Timeout as for example in "5h 23min 42ms" Timeout as for example in "5h 23min 42ms"

View file

@ -6,7 +6,7 @@ use humantime::Duration;
/// Send a message to a message queue /// Send a message to a message queue
#[derive(Clap, Debug)] #[derive(Clap, Debug)]
pub struct Send { pub struct Send {
/// Use priority PRIO, PRIO >= 0 /// Set a different priority, priority >= 0
#[clap(short, long, default_value = "0")] #[clap(short, long, default_value = "0")]
pub priority: u32, pub priority: u32,
/// Do not block /// Do not block