func (p *Parser) Parse(args []string) error {
	// If -h or --help were specified then print usage
	for _, arg := range args {
		if arg == "-h" || arg == "--help" {
			return ErrHelp
		}
		if arg == "--version" {
			return ErrVersion
		}
		if arg == "--" {
			break
		}
	}

	// Process all command line arguments
	return process(p.specs, args)
}
func (p *Parser) Parse(args []string) error {
	
	for _, arg := range args {
		if arg == "-h" || arg == "--help" {
			return ErrHelp
		}
		if arg == "--version" {
			return ErrVersion
		}
		if arg == "--" {
			break
		}
	}

	
	return process(p.specs, args)
}
func ( p * Parser ) Parse ( args [ ] string ) error { // If -h or --help were specified then print usage for _ , arg := range args { if arg == " " || arg == " " { return ErrHelp } if arg == " " { return ErrVersion } if arg == " " { break } } // Process all command line arguments return process ( p . specs , args ) }
// Parse processes the given command line option, storing the results in the field
// of the structs from which NewParser was constructed
Parse processes the given command line option storing the results in the field of the structs from which NewParser was constructed