mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
clean up cli flags
This commit is contained in:
parent
5b5cc9c9f1
commit
040a5b9750
3 changed files with 8 additions and 10 deletions
|
@ -84,7 +84,7 @@ func TestGetRunServerParams(t *testing.T) {
|
|||
// now set command flags
|
||||
serveCmd.Flags().Set("host", "localhost")
|
||||
serveCmd.Flags().Set("port", "8888")
|
||||
serveCmd.Flags().Set("allowed-origins", "http://foo.example.com,http://192.168.1.1")
|
||||
serveCmd.Flags().Set("origins", "http://foo.example.com,http://192.168.1.1")
|
||||
|
||||
host, port, extraOrigins, err := getRunServerParams(serveCmd)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue