Merge pull request #2026 from ktock/fix-invoke-flag

debug: fix short-form custom command name on `--invoke` isn't used
This commit is contained in:
Tõnis Tiigi
2023-08-30 10:05:49 -07:00
committed by GitHub

View File

@@ -719,6 +719,7 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) {
}
if len(fields) == 1 && !strings.Contains(fields[0], "=") {
cfg.Cmd = []string{fields[0]}
cfg.NoCmd = false
return cfg, nil
}
cfg.NoUser = true