From f2556c74bda04ee8a099fe3c478271f3d979c0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=83=A5=EB=83=90=EC=B1=A0?= Date: Thu, 31 Oct 2024 18:34:18 +0900 Subject: [PATCH] fix(cli): `--static` flag could not be used multiple times (#432) --- crates/cli/src/flags.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/flags.rs b/crates/cli/src/flags.rs index 76f79bd3..2673a7c6 100644 --- a/crates/cli/src/flags.rs +++ b/crates/cli/src/flags.rs @@ -207,7 +207,11 @@ fn get_start_command() -> Command { .requires("inspector") .action(ArgAction::SetTrue), ) - .arg(arg!(--"static" ).help("Glob pattern for static files to be included")) + .arg( + arg!(--"static" ) + .help("Glob pattern for static files to be included") + .action(ArgAction::Append) + ) .arg(arg!(--"jsx-specifier" "A valid JSX specifier")) .arg( arg!(--"jsx-module" "A valid JSX module") @@ -236,7 +240,11 @@ fn get_bundle_command() -> Command { .help("Path to entrypoint to bundle as an eszip") .required(true), ) - .arg(arg!(--"static" ).help("Glob pattern for static files to be included")) + .arg( + arg!(--"static" ) + .help("Glob pattern for static files to be included") + .action(ArgAction::Append) + ) .arg(arg!(--"import-map" ).help("Path to import map file")) .arg( arg!(--"decorator" )