summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDavid Gay <eapoems@riseup.net>2023-10-02 00:32:23 -0400
committerDavid Gay <eapoems@riseup.net>2023-10-02 00:32:23 -0400
commitce7263e0fa98daafb84295e75064e6d7efd87ba2 (patch)
treed89bd23cde00db09de6952997e6788490853230d /src/cli.rs
parent0f3c03ceace46deab3097c99e82284c617cc9277 (diff)
Set up for random things other than tables, like henchmen
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index b579ad6..005786b 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -8,12 +8,18 @@ pub fn cli() -> Command {
.subcommand_required(true)
.arg_required_else_help(true)
.allow_external_subcommands(true)
+ .subcommand(Command::new("random")
+ .about("Generates a random something")
+ .args_conflicts_with_subcommands(true)
+ .subcommand(Command::new("henchman")
+ .about("Generates a random henchman")),
+ )
.subcommand(Command::new("roll")
.about("Rolls dice based on a given formula")
.arg(arg!(<FORMULA> "The dice rolling formula"))
.arg_required_else_help(true),
)
- .subcommand(Command::new("random")
+ .subcommand(Command::new("table")
.about("Rolls on a random table")
.arg(arg!(<TABLE> "The name of the table to roll on"))
.arg_required_else_help(true),