clean up cli flags

This commit is contained in:
Jeffrey Morgan 2023-08-10 09:27:03 -07:00
parent 5b5cc9c9f1
commit 040a5b9750
3 changed files with 8 additions and 10 deletions

View file

@ -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 {