// Count up the number of command flags found in the args, for validation
Count up the number of command flags found in the args, for validation
// Count up the number of command flags found in the args for validation
func CountCommands() int {
	count := 0
	flag.Visit(func(value *flag.Flag) {
		_, ok := job_flags[value.Name]
		if ok {
			count++
		}
		cli_cmd = value.Name
	})
	return count
}
func CountCommands ( ) int { count := 0 flag . Visit ( func ( value * flag . Flag ) { _ , ok := job_flags [ value . Name ] if ok { count ++ } cli_cmd = value . Name } ) return count }
Count up the number of command flags found in the args, for validation
Count up the number of command flags found in the args for validation
// See if this is a flag // Side-effect: Save the last command