Comments (1)
Hey @rpgoldman ,
The :boolean/true option kind creates a flag, which always returns T.
An example for this one might be an option such as --enable-engine
, which when specified on the command-line will always be set to T
. This is what the :flag
option does internally.
The :boolean/false option kind creates a flag, which always returns NIL.
In a similar way the :boolean/false
option does the opposite by setting the value associated with the option to NIL
. For example --abort-on-errors
option if specified might make decisions to continue with the program execution in case of errors.
These are just helper options around flags.
What you probably want to use is :boolean
option which allows specifying a value. For example --enable-logging=false
or --enable-logging=true
.
I'd be happy to review and make changes to the documentation, if they are unclear, so feel free to propose such! :)
Thanks!
from clingon.
Related Issues (20)
- [Question] Having a subcommand that doesn't take any arguments or options HOT 2
- How can I add a new option type like Python click's nargs? HOT 2
- Searching for options in parent commands HOT 7
- Documentation about extending and adding aliases to pre-existing commands? HOT 10
- [SBCL] --help and --version print SBCL's help and version HOT 4
- --version for subcommands HOT 2
- Tags and Quicklisp HOT 1
- Simple question about README HOT 2
- Feature enhancement: float options HOT 2
- "non-consuming" options? That is options with optional values of specific types which shouldn't signal errors but rather not consume the argument. HOT 6
- Trying to handle parse errors inside run (to use unknown options as free args) HOT 2
- Proposal: running clingon:run and not exit-ing when in a dumb terminal (like Slime) HOT 7
- Desactivating quit/exit at the REPL if desired HOT 8
- option-derive-error output doesn't mention the option name that produced the error HOT 3
- About line breaks in the description HOT 3
- Question: Clingon and buildapp? HOT 4
- Support named positional arguments HOT 1
- completions.bash doesn't work. HOT 4
- Documentation request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clingon.