Unverified Commit 1adfa675 authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

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

parent 790d24eb
......@@ -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]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment