Skip to content

Regression: -h alias not working #232

@OrbisK

Description

@OrbisK

Environment

System:
OS: Linux 6.8 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (2) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
Memory: 5.15 GB / 7.76 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 24.11.1 - /home/codespace/nvm/current/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 11.6.2 - /home/codespace/nvm/current/bin/npm
pnpm: 10.30.3 - /home/codespace/nvm/current/bin/pnpm

Reproduction

nuxt/nuxt#34430

Describe the bug

With the newest version of citty it is not possible to use -h as an alias because it is reserved for --help.

If this is a wont fix, we should think about a warning to prevent the unexpected noop.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions