code: func simplifyArgs(args []string) (r []string) {
  	r = make([]string, 0, len(args)*2)
  	for i, arg := range args {
  		if arg == "--" {
  			for j := i; j < len(args); j++ {
  				r = append(r, args[j])
  			}
  			break
  		}
  		if len(arg) > 2 && arg[0] == '-' && arg[1] != '-' {
  			for j := 1; j < len(arg); j++ {
  				r = append(r, "-"+string(arg[j]))
  			}
  		} else {
  			r = append(r, arg)
  		}
  	}
  	return
  }
docs: // simplifyArgs transforms an array of commandline arguments so that
  // any -abc arg before the first -- (if any) are expanded into
  // -a -b -c.