Преглед на файлове

tighten up the error string for `ollama show` flags (#476)

Patrick Devine преди 1 година
родител
ревизия
1adfa67589
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      cmd/cmd.go

+ 2 - 2
cmd/cmd.go

@@ -281,9 +281,9 @@ func ShowHandler(cmd *cobra.Command, args []string) error {
 	}
 
 	if flagsSet > 1 {
-		return errors.New("only one of 'license', 'modelfile', 'parameters', 'system', or 'template' can be set")
+		return errors.New("only one of '--license', '--modelfile', '--parameters', '--system', or '--template' can be specified")
 	} else if flagsSet == 0 {
-		return errors.New("one of 'license', 'modelfile', 'parameters', 'system', or 'template' must be set")
+		return errors.New("one of '--license', '--modelfile', '--parameters', '--system', or '--template' must be specified")
 	}
 
 	req := api.ShowRequest{Name: args[0]}