Skip to content

Commit fba0f4c

Browse files
committed
fix arg logic
1 parent 924abbd commit fba0f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/devcontainer/devcontainer.go

Lines changed: 1 addition & 1 deletion
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
}

0 commit comments

Comments
 (0)