fix subcommand help

This commit is contained in:
LordMZTE 2020-12-06 13:58:23 +01:00
parent 5fd45a333f
commit 03d2e5f5b1

View file

@ -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,
}