mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 03:21:01 +00:00
add a few help messages to the cli
This commit is contained in:
parent
771d4325c2
commit
35b951967d
2 changed files with 15 additions and 7 deletions
|
@ -19,7 +19,9 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.short("t")
|
||||
.long("type")
|
||||
.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::with_name("user")
|
||||
|
@ -51,7 +53,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.short("y")
|
||||
.long("yes")
|
||||
.help("Confirm the deletion"),
|
||||
),
|
||||
)
|
||||
.about("Delete a list"),
|
||||
)
|
||||
.subcommand(
|
||||
SubCommand::with_name("add")
|
||||
|
@ -75,7 +78,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.long("value")
|
||||
.takes_value(true)
|
||||
.help("The value to add"),
|
||||
),
|
||||
)
|
||||
.about("Add element to a list"),
|
||||
)
|
||||
.subcommand(
|
||||
SubCommand::with_name("rm")
|
||||
|
@ -99,7 +103,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.long("value")
|
||||
.takes_value(true)
|
||||
.help("The value to remove"),
|
||||
),
|
||||
)
|
||||
.about("Remove element from list"),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.short("y")
|
||||
.long("yes")
|
||||
.help("Confirm the deletion"),
|
||||
),
|
||||
)
|
||||
.about("Delete a timeline"),
|
||||
)
|
||||
.subcommand(
|
||||
SubCommand::with_name("edit")
|
||||
|
@ -86,7 +87,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.long("query")
|
||||
.takes_value(true)
|
||||
.help("The query posts in this timelines have to match"),
|
||||
),
|
||||
)
|
||||
.about("Edit the query of a timeline"),
|
||||
)
|
||||
.subcommand(
|
||||
SubCommand::with_name("repopulate")
|
||||
|
@ -112,7 +114,8 @@ pub fn command<'a, 'b>() -> App<'a, 'b> {
|
|||
.long("preload-count")
|
||||
.takes_value(true)
|
||||
.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 a new issue