From 0805aacc891505c4dfe5f7a64184d131decaeb49 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 9 Nov 2021 01:09:38 +0100 Subject: Add some command line help texts --- src/main.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src') 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), ), ) -- cgit v1.2.3