switch package:opt-env-conf

Try to parse a switch, activate the given value when succesful You'll also need to add at least one long or short. Multiple switchs override eachother.
Define a setting for a Value with a given default value. If you pass in long values, it will have --enable-foobar and --disable-foobar switches. If you pass in env values, it will read those environment variables too. If you pass in conf values, it will read those configuration values too. If you pass in a value value, it will use that as the default value.
Define a setting for a Value with a given default value. If you pass in long values, it will have --foobar and --no-foobar switches. If you pass in env values, it will read those environment variables too. If you pass in conf values, it will read those configuration values too. If you pass in a value value, it will use that as the default value.
Consume a switch. This supports:
  • ["-f"]
  • ["--foo"]
  • ["-df"]
What value to parse when the switch exists. Nothing means this is not a switch.