diff --git a/crates/dtmm/src/main.rs b/crates/dtmm/src/main.rs index abdce49..fdce5ab 100644 --- a/crates/dtmm/src/main.rs +++ b/crates/dtmm/src/main.rs @@ -37,6 +37,12 @@ fn main() -> Result<()> { tracing::trace!(default_config_path = %default_config_path.display()); let matches = command!() + .arg(Arg::new("oodle").long("oodle").help( + "The oodle library to load. This may either be:\n\ + - A library name that will be searched for in the system's default paths.\n\ + - A file path relative to the current working directory.\n\ + - An absolute file path.", + )) .arg( Arg::new("config") .long("config") diff --git a/crates/dtmt/src/cmd/build.rs b/crates/dtmt/src/cmd/build.rs index c72a115..f0f6b41 100644 --- a/crates/dtmt/src/cmd/build.rs +++ b/crates/dtmt/src/cmd/build.rs @@ -32,6 +32,12 @@ pub(crate) fn command_definition() -> Command { If omitted, dtmt will search from the current working directory upward.", ), ) + .arg(Arg::new("oodle").long("oodle").help( + "The oodle library to load. This may either be:\n\ + - A library name that will be searched for in the system's default paths.\n\ + - A file path relative to the current working directory.\n\ + - An absolute file path.", + )) .arg( Arg::new("out") .long("out") diff --git a/crates/dtmt/src/cmd/bundle/mod.rs b/crates/dtmt/src/cmd/bundle/mod.rs index 2a18a02..03ab3f5 100644 --- a/crates/dtmt/src/cmd/bundle/mod.rs +++ b/crates/dtmt/src/cmd/bundle/mod.rs @@ -1,4 +1,4 @@ -use clap::{ArgMatches, Command}; +use clap::{Arg, ArgMatches, Command}; use color_eyre::eyre::Result; mod decompress; @@ -10,6 +10,12 @@ pub(crate) fn command_definition() -> Command { Command::new("bundle") .subcommand_required(true) .about("Manipulate the game's bundle files") + .arg(Arg::new("oodle").long("oodle").help( + "The oodle library to load. This may either be:\n\ + - A library name that will be searched for in the system's default paths.\n\ + - A file path relative to the current working directory.\n\ + - An absolute file path.", + )) .subcommand(decompress::command_definition()) .subcommand(extract::command_definition()) .subcommand(inject::command_definition())