summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDavid Gay <eapoems@riseup.net>2024-01-31 03:14:53 -0500
committerDavid Gay <eapoems@riseup.net>2024-01-31 03:14:53 -0500
commite63dbbde68f81f8a65b48608d41ef6bf6be799e6 (patch)
treeb6c9a200278974d6bc70ccdb9e3960b9e871344f /src/cli.rs
parent05a13c4c3232f10ade9a2cc75de84e93278d22c6 (diff)
`random npc` accepts level argumentHEADmaster
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index bc6c3a8..0c58461 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -33,6 +33,14 @@ pub fn cli() -> Command {
.short('c')
.long("class")
.help("The class of the NPC, e.g. fighter"),
+ )
+ .arg(
+ Arg::new("level")
+ .short('l')
+ .long("level")
+ .help("The level of the NPC, e.g 18")
+ .default_value("1")
+ .value_parser(clap::value_parser!(i32)),
),
),
)