Releases: zxdev/env
Releases · zxdev/env
v1.8.3
Naked bool command-line flags
Bool flags can now be given naked on the command line:
-tls(alone) sets the fieldtrue-tls:off/-tls=falsedisable it- a naked bool no longer swallows the following token, so
-tls foosetstlstrue and leavesfooas 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.
v1.8.2
Add float support to env field parsing.
- New
ftype code shown in command help for float32/float64 fields setFieldparses floats via strconv.ParseFloat with invalid-input warningsdefault:tags honored for float fields in conf.go- Example
pullcommand gains a-r/rate float64flag
v1.8.1
Help output reformatted to go-tool style
- Top-level menu now renders like
go help: aUsage:block, a tab-indented "The commands are:" list, and a "Use "prog help "" footer. - Per-command help shows a terse columnar flag table: name · alias · [type] · [ore*] attrs · (default) · help, all on one line.
versionis now a one-line banner.- Example rewritten to demonstrate
env.Commandsdispatch with a gracefulservesubcommand; readme updated to match.