From 75ed579cf1bb83ddd206a8bee4dec864680edb81 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 2 Oct 2023 03:45:42 -0400 Subject: cargo fmt --- src/cli.rs | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 05256f3..226b06a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,4 +1,4 @@ -use clap::{arg, Command, crate_authors, crate_description, crate_name, crate_version}; +use clap::{arg, crate_authors, crate_description, crate_name, crate_version, Command}; pub fn cli() -> Command { Command::new(crate_name!()) @@ -8,22 +8,23 @@ 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("magic") - .about("Generates a magic item")), + .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("magic").about("Generates a magic item")), ) - .subcommand(Command::new("roll") - .about("Rolls dice based on a given formula") - .arg(arg!( "The dice rolling formula")) - .arg_required_else_help(true), + .subcommand( + Command::new("roll") + .about("Rolls dice based on a given formula") + .arg(arg!( "The dice rolling formula")) + .arg_required_else_help(true), ) - .subcommand(Command::new("table") - .about("Rolls on a random table") - .arg(arg!( "The name of the table to roll on")) - .arg_required_else_help(true), + .subcommand( + Command::new("table") + .about("Rolls on a random table") + .arg(arg!(
"The name of the table to roll on")) + .arg_required_else_help(true), ) } -- cgit v1.2.3