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

Does it / can it support single dash commands like -version ? #3

Open
ieugen opened this issue Mar 26, 2024 · 2 comments
Open

Does it / can it support single dash commands like -version ? #3

ieugen opened this issue Mar 26, 2024 · 2 comments

Comments

@ieugen
Copy link

ieugen commented Mar 26, 2024

Hi,

I'm in the process of porting a go cli app (nebula-certs) to clojure using cli .
go seems to be using single dash args.
Any way this can be toggled ?

 nebula-cert verify
Error: -ca is required
Usage of nebula-cert verify <flags>: verifies a certificate isn't expired and was signed by a trusted authority.
  -ca string
        Required: path to a file containing one or more ca certificates
  -crt string
        Required: path to a file containing a single certificate
@ieugen
Copy link
Author

ieugen commented Mar 30, 2024

It seems nebula / go cli parsing works with both single and double dash, e.g. -version and --version, but the help is printed only with -version

@plexus
Copy link
Member

plexus commented Apr 3, 2024

No, single dash assumes one letter = one flag, ie -version is the same as -v -e -r -s -i -o -n. This is a common convention, we have no intention to support longer flags with a single dash.

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