func parseArguments(args []string) intervalConfig {
	config := intervalConfig{}

	for _, arg := range args {
		parsed, err := time.ParseDuration(arg)
		if err == nil {
			config.intervals = append(config.intervals, parsed)
		}
	}

	return config
}
// parseArguments parses the given cmd arguments into an intervalConfig.
parseArguments parses the given cmd arguments into an intervalConfig.
// parseArguments parses the given cmd arguments into an intervalConfig .
func parseArguments(args []string) intervalConfig {
	config := intervalConfig{}
	for _, arg := range args {
		parsed, err := time.ParseDuration(arg)
		if err == nil {
			config.intervals = append(config.intervals, parsed)
		}
	}
	return config
}
func parseArguments ( args [ ] string ) intervalConfig { config := intervalConfig { } for _ , arg := range args { parsed , err := time . ParseDuration ( arg ) if err == nil { config . intervals = append ( config . intervals , parsed ) } } return config }
parseArguments parses the given cmd arguments into an intervalConfig.
parseArguments parses the given cmd arguments into an intervalConfig .