Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flags require capitalization? Bug or feature? #5

Open
ieugen opened this issue Apr 3, 2024 · 1 comment
Open

Flags require capitalization? Bug or feature? #5

ieugen opened this issue Apr 3, 2024 · 1 comment

Comments

@ieugen
Copy link

ieugen commented Apr 3, 2024

Hi,

I encountered this during my cli implementation.
This is not specified anywhere in the documentation.

Using the bellow

:flags ["--name string" "A name option - lower case `string` does not get parsed"]

;; gets me
[FATAL] Unknown flag:  --name

Using capitalized version works ok

:flags ["--name STRING" "A name option - lower case `string` does not get parsed"]
@plexus
Copy link
Member

plexus commented Apr 3, 2024

Yes, this is by design. This follows the connections I've seen "in the wild", this is the "classic" way of doing things, in all caps, or we also support the "modern" way, eg --name <string>.

A PR for the README to point that out would be most welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants