Skip to content

Commit 9f2c6d7

Browse files
committed
limactl shell: fix warning string
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 7459f45 commit 9f2c6d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/limactl/shell.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ func shellAction(clicontext *cli.Context) error {
5454
switch clicontext.Args().Get(1) {
5555
case "start", "delete", "shell":
5656
// `lima start` (alias of `limactl $LIMA_INSTANCE start`) is probably a typo of `limactl start`
57-
logrus.Warnf("Perhaps you meant `limactl %s`?", strings.Join(clicontext.Args().Slice(), " "))
57+
logrus.Warnf("Perhaps you meant `limactl %s %s %s`?",
58+
clicontext.Args().Get(1),
59+
clicontext.Args().First(),
60+
strings.Join(clicontext.Args().Slice()[2:], " "))
5861
}
5962

6063
hostHome, err := os.UserHomeDir()

0 commit comments

Comments
 (0)