summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 4fdef22..bc6c3a8 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -24,7 +24,17 @@ pub fn cli() -> Command {
.help("Output in CSV format"),
),
)
- .subcommand(Command::new("magic").about("Generates a magic item")),
+ .subcommand(Command::new("magic").about("Generates a magic item"))
+ .subcommand(
+ Command::new("npc")
+ .about("Generates a random NPC with a class and magic item loadout")
+ .arg(
+ Arg::new("class")
+ .short('c')
+ .long("class")
+ .help("The class of the NPC, e.g. fighter"),
+ ),
+ ),
)
.subcommand(
Command::new("roll")