Skip to content

Commit fddce11

Browse files
committed
Fix issue where first arg/flag was ignored when generating config
Signed-off-by: Brad Davidson <[email protected]>
1 parent 301db54 commit fddce11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/app/app.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package app
22

33
import (
4-
"errors"
54
"fmt"
65
"time"
76

@@ -212,7 +211,7 @@ func run(c *cli.Context) error {
212211
// Config returns the endpoint config provided by parsing the provided CLI flags.
213212
func Config(args []string) endpoint.Config {
214213
a := New()
215-
a.Before = func(*cli.Context) error { return errors.New("parse") }
216-
a.Run(args)
214+
a.Action = func(*cli.Context) error { return nil }
215+
a.Run(append([]string{"kine"}, args...))
217216
return config
218217
}

0 commit comments

Comments
 (0)