aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-09 01:09:38 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-09 01:09:38 +0100
commit0805aacc891505c4dfe5f7a64184d131decaeb49 (patch)
treeb03499e726ee60ff4d72d0034f2d3519f2e61672 /src
parent08cbaaa62289a8b27dcd52c95aaa3ad2662cf23c (diff)
downloadmodderbaas-0805aacc891505c4dfe5f7a64184d131decaeb49.tar.gz
modderbaas-0805aacc891505c4dfe5f7a64184d131decaeb49.tar.bz2
modderbaas-0805aacc891505c4dfe5f7a64184d131decaeb49.zip
Add some command line help texts
Diffstat (limited to 'src')
-rw-r--r--src/main.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index f42647a..91d1c9c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -30,33 +30,47 @@ fn main() -> Result<()> {
.long("world")
.short("c")
.required(false)
+ .help("Select the world that we should operate on")
.takes_value(true),
)
.subcommand(
SubCommand::with_name("enable")
.about("Enables a mod and its dependencies")
- .arg(Arg::with_name("mod").multiple(true).required(true)),
+ .arg(
+ Arg::with_name("mod")
+ .multiple(true)
+ .required(true)
+ .help("The mod to enable"),
+ ),
)
.subcommand(
SubCommand::with_name("install")
.about("Installs a mod and its dependencies")
- .arg(Arg::with_name("mod").multiple(true).required(true))
+ .arg(
+ Arg::with_name("mod")
+ .multiple(true)
+ .required(true)
+ .help("The mod to install"),
+ )
.arg(
Arg::with_name("target")
.short("t")
.long("target-dir")
+ .help("The mod target directory")
.default_value("."),
)
.arg(
Arg::with_name("dry-run")
.short("n")
.long("dry-run")
+ .help("Only resolve dependencies, don't actually install any mods")
.required(false),
)
.arg(
Arg::with_name("fix-permissions")
.short("p")
.long("fix-permissions")
+ .help("Change the owner of the installed mod to match target-dir's")
.required(false),
),
)