Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

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

Patrick Devine1adfa67589c7
diff --git a/cmd/cmd.go b/cmd/cmd.go
index ab5257b2f..80ce6822b 100644
--- a/cmd/cmd.go
+++ b/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]}