Releases: hellflame/argparse
Releases · hellflame/argparse
v1.7.4
v1.7.3
Fix for #11 :
- Invoked Action
if subparser is invoked, the root parser will NOT be invoked.
- When Not Invoked
if subparser is NOT invoked, no argument's default value will be applied, and required argument will not be checked ... The subparser remains dead.
Full Changelog: v1.7.2...v1.7.3
v1.7.2
What's Changed
- Renamed optional arguments to options as proposed in #9 by @myOmikron in #10
New Contributors
- @myOmikron made their first contribution in #10
Full Changelog: v1.7.1...v1.7.2
v1.7.1
v1.7.0
v1.6.0
v1.5.1
v1.5.0
- replace parse exit with new error type #6
- update readme
it will not make old code break, but be able to deal errors more specifically
if e := p.Parse(nil); e != nil {
switch e.(type) {
case argparse.BreakAfterHelp: // match for default help showed
os.Exit(1)
case argparse.BreakAfterShellScript: // match for auto completion showed
default:
fmt.Printf(e.Error()) // normal parse errors
}
return
}