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

This commit is contained in:
Patrick Devine 2023-09-06 13:38:49 -07:00 committed by GitHub
parent 790d24eb7b
commit 1adfa67589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]}