Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jul 7, 2021
1 parent 726f30f commit 8b660af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ var configureResetCmd = &cobra.Command{
},
}

// currentConfigOptionsValidArgs the options currently in use in the current scope
// configOptionsValidArgs all possible config options
func configOptionsValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
persistentValidArgsFunction(cmd)

Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func checkVersion(command string) {

// persistentValidArgsFunction Cobra parses flags after executing ValidArgsFunction, so we must manually initialize flags
func persistentValidArgsFunction(cmd *cobra.Command) {
// more info https://github.com/spf13/cobra/issues/1291
loadFlags(cmd)
}

Expand Down

0 comments on commit 8b660af

Please sign in to comment.