From 73e142a5d7ca3d09fa321e43f78188cae8ceb21a Mon Sep 17 00:00:00 2001 From: Valerio Ageno Date: Sun, 26 May 2024 18:26:36 +0200 Subject: [PATCH] feat: allow passing zero arguments to tuono CLI --- crates/tuono/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/tuono/src/lib.rs b/crates/tuono/src/lib.rs index 09dc0622..a0f8f512 100644 --- a/crates/tuono/src/lib.rs +++ b/crates/tuono/src/lib.rs @@ -11,7 +11,7 @@ enum Actions { Dev, /// Build the production assets Build, - /// Create a new project folder + /// Scaffold a new project New, } @@ -19,13 +19,13 @@ enum Actions { #[command(version, about = "The react/rust fullstack framework")] struct Args { #[command(subcommand)] - action: Option, + action: Actions, } pub fn cli() { let args = Args::parse(); - match args.action.unwrap() { + match args.action { Actions::Dev => { bundle_axum_source(); create_client_entry_files().unwrap();