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:
Naiyuan Qing 2026-02-10 18:09:12 +08:00
parent 6ef58a0cab
commit 7eb36a48d3
2 changed files with 7 additions and 6 deletions

View file

@ -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")) {