tighten up the error string for ollama show
flags (#476)
This commit is contained in:
parent
790d24eb7b
commit
1adfa67589
|
@ -281,9 +281,9 @@ func ShowHandler(cmd *cobra.Command, args []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if flagsSet > 1 {
|
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 {
|
} 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]}
|
req := api.ShowRequest{Name: args[0]}
|
||||||
|
|
Loading…
Reference in a new issue