use lower case for value names

This commit is contained in:
figsoda 2020-11-09 14:47:34 -05:00
parent 6286ec7c1a
commit ee11bcd682
3 changed files with 14 additions and 14 deletions

View file

@ -61,10 +61,10 @@ Type: enum
variant | struct, tuple or unit | fields (separated by comma) | description
-|-|-|-
`Max(n, item)` | tuple | non-negative integer, \<Type> | `item` with a maximum length of `n`
`Min(n, item)` | tuple | non-negative integer, \<Type> | `item` with a minimum length of `n`
`Fixed(n, item)` | tuple | non-negative integer, \<Type> | `item` with a fixed length of `n`
`Ratio(n, item)` | tuple | non-negative integer, \<Type> | divide the total length in to ratios, mixing with other constraints would cut off the rightmost item
`Max(n, item)` | tuple | non-negative integer, \<type> | `item` with a maximum length of `n`
`Min(n, item)` | tuple | non-negative integer, \<type> | `item` with a minimum length of `n`
`Fixed(n, item)` | tuple | non-negative integer, \<type> | `item` with a fixed length of `n`
`Ratio(n, item)` | tuple | non-negative integer, \<type> | divide the total length in to ratios, mixing with other constraints would cut off the rightmost item
### Texts

View file

@ -49,11 +49,11 @@ flag | description
option | description
-|-
--address \<ADDRESS> | Specify the address of the mpd server
-c, --config \<FILE> | Specify the config file
--jump-lines \<NUMBER> | The number of lines to jump
--seek-secs \<NUMBER> | The time to seek in seconds
--ups \<NUMBER> | The amount of status updates per second
--address \<address> | Specify the address of the mpd server
-c, --config \<file> | Specify the config file
--jump-lines \<number> | The number of lines to jump
--seek-secs \<number> | The time to seek in seconds
--ups \<number> | The amount of status updates per second
## Key bindings

View file

@ -46,11 +46,11 @@ use crate::config::Config;
)]
struct Opts {
/// Specify the config file
#[structopt(short, long, value_name = "FILE")]
#[structopt(short, long, value_name = "file")]
config: Option<String>,
/// Specify the address of the mpd server
#[structopt(long, value_name = "ADDRESS")]
#[structopt(long, value_name = "address")]
address: Option<String>,
/// Cycle through the queue
@ -58,7 +58,7 @@ struct Opts {
cycle: bool,
/// The number of lines to jump
#[structopt(long, value_name = "NUMBER")]
#[structopt(long, value_name = "number")]
jump_lines: Option<usize>,
/// Don't cycle through the queue
@ -66,11 +66,11 @@ struct Opts {
no_cycle: bool,
/// The time to seek in seconds
#[structopt(long, value_name = "NUMBER")]
#[structopt(long, value_name = "number")]
seek_secs: Option<f64>,
/// The amount of status updates per second
#[structopt(long, value_name = "NUMBER")]
#[structopt(long, value_name = "number")]
ups: Option<f64>,
}