diff options
author | David Gay <eapoems@riseup.net> | 2024-01-31 03:14:53 -0500 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2024-01-31 03:14:53 -0500 |
commit | e63dbbde68f81f8a65b48608d41ef6bf6be799e6 (patch) | |
tree | b6c9a200278974d6bc70ccdb9e3960b9e871344f /src/cli.rs | |
parent | 05a13c4c3232f10ade9a2cc75de84e93278d22c6 (diff) |
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)), ), ), ) |