diff options
author | David Gay <eapoems@riseup.net> | 2023-10-02 00:32:23 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-02 00:32:23 -0400 |
commit | ce7263e0fa98daafb84295e75064e6d7efd87ba2 (patch) | |
tree | d89bd23cde00db09de6952997e6788490853230d /src/cli.rs | |
parent | 0f3c03ceace46deab3097c99e82284c617cc9277 (diff) |
Set up for random things other than tables, like henchmen
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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), |