// Usage returns formatted string with usage help.
Usage returns formatted string with usage help.
// Usage returns formatted string with usage help .
func (y *Parser) Usage() string {
	u := make([]string, len(y.vars))
	for i, v := range y.vars {
		u[i] = v.usage()
	}
	if len(y.argParser.args) > 0 {
		u = append([]string{y.argParser.usage()}, u...)
	}
	return strings.Join(u, "\n")
}
func ( y * Parser ) Usage ( ) string { u := make ( [ ] string , len ( y . vars ) ) for i , v := range y . vars { u [ i ] = v . usage ( ) } if len ( y . argParser . args ) > 0 { u = append ( [ ] string { y . argParser . usage ( ) } , u ... ) } return strings . Join ( u , " \n " ) }
Usage returns formatted string with usage help.
Usage returns formatted string with usage help .