Skip to content

Commit

Permalink
Expose FlagSet to callers
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Meyer <[email protected]>
  • Loading branch information
wndhydrnt committed Feb 27, 2024
1 parent 6c3386d commit 05ec684
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,12 @@ func validate(c *Config) error {
return c.parseForwardedHeaders()
}

// Flags returns the flag.FlagSet used by skipper.
// Users can add custom flags to the FlagSet before calling Parse().
func (c *Config) Flags() *flag.FlagSet {
return c.flags
}

func (c *Config) Parse() error {
return c.ParseArgs(os.Args[0], os.Args[1:])
}
Expand Down

0 comments on commit 05ec684

Please sign in to comment.