Skip to content

v1.8.3

Latest

Choose a tag to compare

@zxdev zxdev released this 14 Jun 16:26
· 1 commit to main since this release

Naked bool command-line flags

Bool flags can now be given naked on the command line:

  • -tls (alone) sets the field true
  • -tls:off / -tls=false disable it
  • a naked bool no longer swallows the following token, so -tls foo sets tls true and leaves foo as a positional

A pre-scan collects bool field names and env: aliases so the parser knows which bare -flag tokens are presence-only. Existing -name value / -name=value / -name:value forms are unchanged for non-bool fields.

Includes tests and updated readme docs.