How do I specify a boolean command line flag using Clap?
This can be done with the action attribute. If your field is a bool then by default the action selected is ArgAction::SetTrue. This is quite nice since you don’t need to set a value when you call the argument. It sets the value by default to true if used and false if not used when … Read more