Releases: alexflint/go-arg
v1.5.1
Version 1.5.0
-
Argument structs can define Description() and Epilogue(), which are added to the usage string
-
Subcommands can have multiple aliases like this:
var args struct {
Remove *struct{} `arg:"subcommand:remove|rm|r" help:"remove something from somewhere"`
}
-
Improves formatting of usage string when the placeholder tag is set to empty string
-
Do not handle --version when the args struct lacks a Version() function
-
Add StructSubcommands to Config struct
Version 1.4.3
- Correctly brackets non-required positional arguments in usage strings
- Fixes help and usage strings for subcommands.
- Add native support for url.URL via go-scalar
- Add environment variables names to error messages when relevant
Version 1.4.2
This patch release fixes a regression in which unexported embedded structs were mistakenly being ignored.
Version 1.4.1
Minor fix for case where an environment variable containing an empty string is parsed into a slice or map.
Version 1.4.0
Version 1.3.0
- Added the placeholder tag
- Improved usage strings when using subcommands
- Improved documentation on using subcommands
Version 1.2.0
This version introduces a new way to specify default values for arguments. The old way still works too.
Version 1.1.0
This version adds support for subcommands. See https://github.com/alexflint/go-arg#subcommands
Version 1.0.0
go-arg has now been stable for ~2 years, so I am releasing version 1.0. This coincides with the migration to the new go module system in #70.