|
|
@ -118,13 +118,18 @@ func removeGoctlFlag(args []string) []string {
|
|
|
|
for step < len(args) {
|
|
|
|
for step < len(args) {
|
|
|
|
arg := args[step]
|
|
|
|
arg := args[step]
|
|
|
|
switch {
|
|
|
|
switch {
|
|
|
|
case arg == "--style", arg == "--home", arg == "--zrpc_out", arg == "--verbose", arg == "-v":
|
|
|
|
case arg == "--style", arg == "--home",
|
|
|
|
|
|
|
|
arg == "--zrpc_out", arg == "--verbose",
|
|
|
|
|
|
|
|
arg == "-v", arg == "--remote",
|
|
|
|
|
|
|
|
arg == "--branch":
|
|
|
|
step += 2
|
|
|
|
step += 2
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
case strings.HasPrefix(arg, "--style="),
|
|
|
|
case strings.HasPrefix(arg, "--style="),
|
|
|
|
strings.HasPrefix(arg, "--home="),
|
|
|
|
strings.HasPrefix(arg, "--home="),
|
|
|
|
strings.HasPrefix(arg, "--verbose="),
|
|
|
|
strings.HasPrefix(arg, "--verbose="),
|
|
|
|
strings.HasPrefix(arg, "-v="),
|
|
|
|
strings.HasPrefix(arg, "-v="),
|
|
|
|
|
|
|
|
strings.HasPrefix(arg, "--remote="),
|
|
|
|
|
|
|
|
strings.HasPrefix(arg, "--branch="),
|
|
|
|
strings.HasPrefix(arg, "--zrpc_out="):
|
|
|
|
strings.HasPrefix(arg, "--zrpc_out="):
|
|
|
|
step += 1
|
|
|
|
step += 1
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|