We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tested with the following program pieced together from the README:
(load "[email protected]:carpentry-org/clig@main") (def p (Clig.new @"my-program" @"doesn't do anything interesting")) (def my-bool-flag (Clig.bool-flag @"force" (Maybe.Just @"b") @"false" @"abandon all safety")) (def my-int-flag (Clig.int-flag @"count" (Maybe.Nothing) @"1" @"repeat n times")) (defn main [] (do (Clig.add-flag &p &my-bool-flag) (Clig.add-flag &p &my-int-flag) (match (Clig.parse &p true) (Result.Error err) (IO.println &(str err)) (Result.Success _) (IO.println "hi") )))
Unfortunately, when trying to provide the program with the short flag b, I get the following output:
b
unknown flag force
This seems to only happen with short flags.
Cheers
The text was updated successfully, but these errors were encountered:
Thanks for filing this! I'll try to get to it this week if I can.
Sorry, something went wrong.
scolsen
No branches or pull requests
Tested with the following program pieced together from the README:
Unfortunately, when trying to provide the program with the short flag
b
, I get the following output:This seems to only happen with short flags.
Cheers
The text was updated successfully, but these errors were encountered: