citty icon indicating copy to clipboard operation
citty copied to clipboard

Support auto case transformation for arguments

Open Barbapapazes opened this issue 1 year ago • 1 comments

Describe the feature

Hello,

Imagine having an argument named 'joinGlue', I would love that the CLI support both joinGlue and join-glue.

Additional information

  • [X] Would you be willing to help implement this feature?

Barbapapazes avatar Feb 21 '24 07:02 Barbapapazes

Doesn't it works? https://github.com/unjs/citty/blob/main/src/args.ts#L42

pi0 avatar Feb 21 '24 08:02 pi0

Indeed, it should.

Barbapapazes avatar Jul 08 '24 06:07 Barbapapazes