-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
Node 22.19 (lts)
Latest commit
Reproduction
- Checkout latest commit
- Change the
staticargument atplayground/commands/deploy.ts:25
static: {
type: "boolean",
description: "Don't include the files in the CWD as static files",
-- default: false,
++ default: true,
++ alias: 's'
},- Observe the parsed output with these invalid flags
| Command | static |
|---|---|
pnpm play deploy -no-static foo |
false |
pnpm play deploy --no-s foo |
false |
Describe the bug
Negative flags are parsed and accept mixed short and long dash prefixes regardless of being an alias or not.
This means that a (default: true) boolean argument named foo-boolean with an alias fb would parse the following negative formats:
--no-foo-boolean-no-foo-boolean(unexpected)-no-fb(not sure)--no-fb(not sure)
Additional context
Honestly, the short prefix on negative aliases look weird to me 😅
Logs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working