Skip to content

Commit 355f9a1

Browse files
authored
Merge pull request #632 from doringeman/launch-args
fix(launch): improve error message for missing arguments
2 parents 2bedecf + 430636c commit 355f9a1

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)