From 2814e88011ad93acad342094751c6fb9a632d101 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 3 Oct 2024 21:46:24 -0700 Subject: [PATCH] style --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index a29f9ae..0fc9fc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,21 +3,21 @@ use std::path::PathBuf; use clap::{Args,Parser,Subcommand}; #[derive(Parser)] -#[command(author, version, about, long_about = None)] -#[command(propagate_version = true)] -struct Cli { +#[command(author,version,about,long_about=None)] +#[command(propagate_version=true)] +struct Cli{ #[command(subcommand)] - command: Commands, + command:Commands, } #[derive(Subcommand)] -enum Commands { +enum Commands{ RunScript(RunScriptSubcommand), } #[derive(Args)] -struct RunScriptSubcommand { - #[arg(long)] +struct RunScriptSubcommand{ + #[arg()] input_file:PathBuf, }