// Parse parses configuration values from flags and environment variables.
// Flags values always override environment variable value.
Parse parses configuration values from flags and environment variables.
Flags values always override environment variable value.
// Parse parses configuration values from flags and environment variables . // Flags values always override environment variable value .
func (y *Parser) Parse(args []string) error {
	if err := y.doParseFlags(args); err != nil {
		return err
	}
	if err := y.doParseEnv(); err != nil {
		return err
	}
	if err := y.doParseArgs(); err != nil {
		return err
	}
	return y.validate()
}
func ( y * Parser ) Parse ( args [ ] string ) error { if err := y . doParseFlags ( args ) ; err != nil { return err } if err := y . doParseEnv ( ) ; err != nil { return err } if err := y . doParseArgs ( ) ; err != nil { return err } return y . validate ( ) }
Parse parses configuration values from flags and environment variables.
Parse parses configuration values from flags and environment variables .