-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Issue Type
- Bug Report
- Feature Request
- Other
Expected
I got such code:
cli.option('-b, --base-url <baseUrl>', 'Set the instance URL', {
default: 'https://github.com',
})
const opt = cli.parse()
console.log(opt)When I run with --base-url "https://gitlab.com", I expect it to output such object:
{
args: [],
options: { '--': [], b: 'https://gitlab.com', baseUrl: 'https://gitlab.com' }
}Actual
Instead it gives me this:
{
args: [],
options: { '--': [], b: 'https://github.com', baseUrl: 'https://gitlab.com' }
}Info
- CAC version:
6.7.14 - Reproduction link: https://replit.com/@shanoaice/cac-short-opt-bug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels