fix(cli): filter pnpm standalone -- arg and simplify dev scripts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6ef58a0cab
commit
7eb36a48d3
2 changed files with 7 additions and 6 deletions
|
|
@ -130,7 +130,8 @@ function printVersion() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
const args = process.argv.slice(2);
|
||||
// Filter out standalone "--" (used by pnpm to pass args)
|
||||
const args = process.argv.slice(2).filter((arg) => arg !== "--");
|
||||
|
||||
// Handle global flags
|
||||
if (args.includes("--help") || args.includes("-h")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue