Skip to content

Commit

Permalink
chore: fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Oct 5, 2023
1 parent e9445dc commit 2222421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cliv2/cmd/cliv2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ func getFullCommandString(cmd *cobra.Command) string {
func updateConfigFromParameter(config configuration.Configuration, args []string, rawArgs []string) {
// extract everything behind --
doubleDashArgs := []string{}
doubleDashFond := false
doubleDashFound := false
for _, v := range rawArgs {
if doubleDashFond {
if doubleDashFound {
doubleDashArgs = append(doubleDashArgs, v)
} else if v == "--" {
doubleDashFond = true
doubleDashFound = true
}
}
config.Set(configuration.UNKNOWN_ARGS, doubleDashArgs)
Expand Down

0 comments on commit 2222421

Please sign in to comment.