-
Notifications
You must be signed in to change notification settings - Fork 710
Closed
Description
Hi!
When running npx rolldown, it's common to build the command iteratively, e.g. npx rolldown lib -o dist/lib.js, check out the result, and add new parameters at the end. When running npx rolldown lib -o dist/lib.js --help, I would expect rolldown to display the list of options, but instead, the flag is ignored.
Current behavior:
> npx rolldown lib -o dist/lib.js --help
<DIR>/lib.js chunk │ size: 2.32 kB
✔ rolldown v1.0.0-rc.6 Finished in 5.05 msExpected behavior:
> npx rolldown lib -o dist/lib.js --help
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API. (rolldown v1.0.0-rc.6)
USAGE rolldown -c <config> or rolldown <input> <options>
...What would be even better: list set options and their value at the beginning of the help notice
> npx rolldown lib -o dist/lib.js --help
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API. (rolldown v1.0.0-rc.6)
USAGE rolldown <input=>lib
SET OPTIONS
--file -o dist/lib.js Single output file.
OPTIONS
--minify -m, Minify the bundled file.
...
INCOMPATIBLE OPTIONS (set of flags that would conflict with the current options)
--dir -d, <dir> Output directory, defaults to dist if file is not set.Thanks in advance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels