code: func globGetArgs(args []string) globArgs {
  	f, target := standardFlags(globCmd)
  	suffix := f.String("suffix", "", "File suffix (example: .go)")
  	globbingMode := f.String("glob-mode", "all", "Which files to glob (normal, dot-files, all [default])")
  	filelist := f.String("filelist", "", "Read all the files from this file")
  	var mapTo []string
  	mapToWrapper := common.StringSliceWrapper{Slice: &mapTo}
  	f.Var(&mapToWrapper, "map-to", "Map contents of filelist to this directory, can be used multiple times")
  
  	f.Parse(args)
  	if *target == "" {
  		common.Die("--target parameter must be specified and cannot be empty")
  	}
  	mode := globModeFromString(*globbingMode)
  	if *filelist == "" {
  		common.Die("--filelist parameter must be specified and cannot be empty")
  	}
  	if len(mapTo) < 1 {
  		common.Die("--map-to parameter must be specified at least once")
  	}
  	return globArgs{
  		target:   *target,
  		suffix:   *suffix,
  		mode:     mode,
  		filelist: *filelist,
  		mapTo:    mapTo,
  	}
  }
docs: // globGetArgs parses given parameters and returns a target, a suffix
  // and a list of files.