Skip to content

Collect Deployment Flag Options #1578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 28, 2024
Prev Previous commit
Next Next commit
Fix declaration of flag slices
  • Loading branch information
bjee19 committed Feb 28, 2024
commit 3220c93ef2bd17eb4c4a3c10e4ac3d958a35fb08
5 changes: 2 additions & 3 deletions cmd/gateway/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,8 @@ func createSleepCommand() *cobra.Command {
return cmd
}

func parseFlags(flags *pflag.FlagSet) (flagKeys, flagValues []string) {
flagKeys = []string{}
flagValues = []string{}
func parseFlags(flags *pflag.FlagSet) ([]string, []string) {
var flagKeys, flagValues []string

flags.VisitAll(
func(flag *pflag.Flag) {
Expand Down