Skip to content

Commit

Permalink
fix(cli): --static flag could not be used multiple times (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyannyacha authored Oct 31, 2024
1 parent d06b556 commit f2556c7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions crates/cli/src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ fn get_start_command() -> Command {
.requires("inspector")
.action(ArgAction::SetTrue),
)
.arg(arg!(--"static" <Path>).help("Glob pattern for static files to be included"))
.arg(
arg!(--"static" <Path>)
.help("Glob pattern for static files to be included")
.action(ArgAction::Append)
)
.arg(arg!(--"jsx-specifier" <Path> "A valid JSX specifier"))
.arg(
arg!(--"jsx-module" <Path> "A valid JSX module")
Expand Down Expand Up @@ -236,7 +240,11 @@ fn get_bundle_command() -> Command {
.help("Path to entrypoint to bundle as an eszip")
.required(true),
)
.arg(arg!(--"static" <Path>).help("Glob pattern for static files to be included"))
.arg(
arg!(--"static" <Path>)
.help("Glob pattern for static files to be included")
.action(ArgAction::Append)
)
.arg(arg!(--"import-map" <Path>).help("Path to import map file"))
.arg(
arg!(--"decorator" <TYPE>)
Expand Down

0 comments on commit f2556c7

Please sign in to comment.