add a few help messages to the cli
This commit is contained in:
parent
771d4325c2
commit
35b951967d
@ -19,7 +19,9 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.short("t")
|
.short("t")
|
||||||
.long("type")
|
.long("type")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("The type of this list"),
|
.help(
|
||||||
|
r#"The type of this list (one of "user", "blog", "word" or "prefix")"#,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("user")
|
Arg::with_name("user")
|
||||||
@ -51,7 +53,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.short("y")
|
.short("y")
|
||||||
.long("yes")
|
.long("yes")
|
||||||
.help("Confirm the deletion"),
|
.help("Confirm the deletion"),
|
||||||
),
|
)
|
||||||
|
.about("Delete a list"),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("add")
|
SubCommand::with_name("add")
|
||||||
@ -75,7 +78,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.long("value")
|
.long("value")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("The value to add"),
|
.help("The value to add"),
|
||||||
),
|
)
|
||||||
|
.about("Add element to a list"),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("rm")
|
SubCommand::with_name("rm")
|
||||||
@ -99,7 +103,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.long("value")
|
.long("value")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("The value to remove"),
|
.help("The value to remove"),
|
||||||
),
|
)
|
||||||
|
.about("Remove element from list"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.short("y")
|
.short("y")
|
||||||
.long("yes")
|
.long("yes")
|
||||||
.help("Confirm the deletion"),
|
.help("Confirm the deletion"),
|
||||||
),
|
)
|
||||||
|
.about("Delete a timeline"),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("edit")
|
SubCommand::with_name("edit")
|
||||||
@ -86,7 +87,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.long("query")
|
.long("query")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("The query posts in this timelines have to match"),
|
.help("The query posts in this timelines have to match"),
|
||||||
),
|
)
|
||||||
|
.about("Edit the query of a timeline"),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("repopulate")
|
SubCommand::with_name("repopulate")
|
||||||
@ -112,7 +114,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.long("preload-count")
|
.long("preload-count")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("Number of posts to try to preload in this timeline at its creation"),
|
.help("Number of posts to try to preload in this timeline at its creation"),
|
||||||
),
|
)
|
||||||
|
.about("Repopulate a timeline. Run this after modifying a list the timeline depends on."),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user