Skip to content

Commit de25ccc

Browse files
authored
Merge pull request #186 from rancher-sandbox/shell-start
Fix `lima (start|stop|shell)` suggestion to remove instance name
2 parents 4c40d10 + d677c6e commit de25ccc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/limactl/shell.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ func shellAction(clicontext *cli.Context) error {
4141
switch clicontext.Args().Get(1) {
4242
case "start", "delete", "shell":
4343
// `lima start` (alias of `limactl $LIMA_INSTANCE start`) is probably a typo of `limactl start`
44-
logrus.Warnf("Perhaps you meant `limactl %s %s %s`?",
45-
clicontext.Args().Get(1),
46-
clicontext.Args().First(),
47-
strings.Join(clicontext.Args().Slice()[2:], " "))
44+
logrus.Warnf("Perhaps you meant `limactl %s`?", strings.Join(clicontext.Args().Slice()[1:], " "))
4845
}
4946

5047
inst, err := store.Inspect(instName)

0 commit comments

Comments
 (0)