fix subcommand help
This commit is contained in:
parent
5fd45a333f
commit
03d2e5f5b1
1 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ struct Opts {
|
|||
|
||||
#[derive(StructOpt)]
|
||||
enum Cmd {
|
||||
#[structopt(help = "uploads a meme")]
|
||||
#[structopt(about = "uploads a meme")]
|
||||
Up {
|
||||
file: String,
|
||||
category: String,
|
||||
|
@ -39,13 +39,13 @@ enum Cmd {
|
|||
open: bool,
|
||||
},
|
||||
|
||||
#[structopt(help = "lists the available categories")]
|
||||
#[structopt(about = "lists the available categories")]
|
||||
Cats,
|
||||
|
||||
#[structopt(help = "searches for a meme")]
|
||||
#[structopt(about = "searches for a meme")]
|
||||
Search { query: String },
|
||||
|
||||
#[structopt(help = "lists all memes")]
|
||||
#[structopt(about = "lists all memes")]
|
||||
List,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue