Skip to content

Commit 5edc4f6

Browse files
committed
Add more help
1 parent fd7b81c commit 5edc4f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ enum SearchCommands {
3838

3939
#[derive(Debug, Subcommand)]
4040
enum Commands {
41+
/// Update MMRL CLI
4142
#[command(arg_required_else_help = true, aliases = &["sup", "up"])]
4243
Upself {
4344
/// Skip confirm
@@ -46,23 +47,27 @@ enum Commands {
4647
/// Example: 0.1.0
4748
version: String,
4849
},
50+
/// View module infomation
4951
#[command(arg_required_else_help = true, aliases = &["view"])]
5052
Info {
5153
/// Give info from given module ids
5254
ids: Vec<String>,
5355
},
56+
/// Search through modules
5457
#[command(arg_required_else_help = true, aliases = &["lookup", "find"])]
5558
Search {
5659
#[clap(subcommand)]
5760
commands: SearchCommands,
5861
// Downloads the modules from the given ids
5962
// query: String,
6063
},
64+
/// Download any module
6165
#[command(arg_required_else_help = true, aliases = &["dl"])]
6266
Download {
6367
/// Downloads the modules from the given ids
6468
ids: Vec<String>,
6569
},
70+
/// Install any module
6671
#[command(arg_required_else_help = true, aliases = &["add", "get", "fetch"])]
6772
Install {
6873
/// Skip confirm

0 commit comments

Comments
 (0)