Prettify + tinker with clap options
This commit is contained in:
parent
0438084eeb
commit
58ef806e56
|
@ -22,6 +22,10 @@ struct Cli {
|
|||
#[arg(short = 'M', long)]
|
||||
mute: Vec<PathBuf>,
|
||||
|
||||
/// Specifies a source (*.block.txt, *.mute.txt)
|
||||
#[arg(short = 'S', long)]
|
||||
src: Vec<PathBuf>,
|
||||
|
||||
/// Specifies confidence in a source. Default = 100
|
||||
#[arg(short, long)]
|
||||
trust: Vec<u16>,
|
||||
|
|
|
@ -111,14 +111,8 @@ fn mergedlist_from_limitlist() {
|
|||
let test_ml = MergedLimitList {
|
||||
map: HashMap::from([
|
||||
(String::from("example.com"), LimitIndices::from((200, 0))),
|
||||
(
|
||||
String::from("example.org"),
|
||||
LimitIndices::from((100, 100)),
|
||||
),
|
||||
(
|
||||
String::from("example.net"),
|
||||
LimitIndices::from((100, 100)),
|
||||
),
|
||||
(String::from("example.org"), LimitIndices::from((100, 100))),
|
||||
(String::from("example.net"), LimitIndices::from((100, 100))),
|
||||
]),
|
||||
max: 200,
|
||||
};
|
||||
|
@ -146,14 +140,8 @@ fn mergedlist_from_limitlist() {
|
|||
let test_ml = MergedLimitList {
|
||||
map: HashMap::from([
|
||||
(String::from("example.com"), LimitIndices::from((450, 0))),
|
||||
(
|
||||
String::from("example.org"),
|
||||
LimitIndices::from((100, 300)),
|
||||
),
|
||||
(
|
||||
String::from("example.net"),
|
||||
LimitIndices::from((100, 150)),
|
||||
),
|
||||
(String::from("example.org"), LimitIndices::from((100, 300))),
|
||||
(String::from("example.net"), LimitIndices::from((100, 150))),
|
||||
]),
|
||||
max: 450,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue