Skip to content

Commit 8ee3712

Browse files
authored
Merge pull request #34 from stuartleeks/sl/fix-cmdline-bug
fix arg logic
2 parents bdfda9b + 2d857d5 commit 8ee3712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/devcontainer/devcontainer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func createExecCommand() *cobra.Command {
9898
argDevcontainerPath != "",
9999
argPromptForDevcontainer,
100100
)
101-
if sourceCount > 0 {
101+
if sourceCount > 1 {
102102
fmt.Println("Can specify at most one of --name/--path/--prompt")
103103
return cmd.Usage()
104104
}
@@ -155,7 +155,7 @@ func createExecCommand() *cobra.Command {
155155
}
156156

157157
if containerID == "" {
158-
fmt.Println("Failed to find dev container")
158+
fmt.Println("Failed to find a matching (running) dev container")
159159
return cmd.Usage()
160160
}
161161

0 commit comments

Comments
 (0)