Skip to content

Commit 430636c

Browse files
committed
fix(launch): improve error message for missing arguments
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
1 parent e9d05d6 commit 430636c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cli/commands/launch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func newLaunchCmd() *cobra.Command {
9191
Long: fmt.Sprintf(`Launch an app configured to use Docker Model Runner.
9292
9393
Supported apps: %s`, strings.Join(supportedApps, ", ")),
94-
Args: cobra.MinimumNArgs(1),
94+
Args: requireMinArgs(1, "launch", "APP [-- APP_ARGS...]"),
9595
ValidArgs: supportedApps,
9696
RunE: func(cmd *cobra.Command, args []string) error {
9797
app := strings.ToLower(args[0])

0 commit comments

Comments
 (0)