Skip to content

Kebab-case CLI input does not override default for camelCase-defined args #227

Closed

Description

@kricsleo

Environment

  • OS: macOS (Darwin arm64)
  • Node: v24.12.0
  • npm: 11.6.2
  • citty: 0.2.1

Reproduction

https://stackblitz.com/edit/github-g6q93b9i?file=index.js

Describe the bug

When an argument is defined in camelCase (e.g. fooBar) with a default value, passing the kebab-case variant on the CLI (--foo-bar one) does not override the default. The parsed value remains the default instead of the explicitly provided value.

Additional context

No response

Logs

Activity

  1. added
    bug
    on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions