flagly
flagly copied to clipboard
The easier way to parsing command-line flag in Golang, also building a command line app.
try this configuration string: type Config struct { MeasurePercent int `name:"measure-percent" desc:"measure target percentage" default:50` } because of the `arg` in word `target` this gets hung up in the infinite...
Sometimes the list of command line options can grow big. I would like to have an option to generate a settings file with all default values and comments. So that...
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20210630005230-0f9fa26af87c to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
When `flagly.Run(*struct)` is called the handler currently isn't binding `flagly:"parent"` fields to their parent type. This PR fixes that by calling `handler.bindStackToStruct()` in `handler.Run()` so these fields are populated.