We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b28a6 commit ece4a5dCopy full SHA for ece4a5d
1 file changed
pkg/uid/uid.go
@@ -40,6 +40,9 @@ func reverse(s []string) {
40
41
// Flag creates a uid for given flag.
42
func Flag(cmd *cobra.Command, flag *pflagfork.Flag) *url.URL {
43
+ if cmd.LocalFlags().Lookup(flag.Name) == nil && cmd.HasParent() {
44
+ return Flag(cmd.Parent(), flag)
45
+ }
46
uid := Command(cmd)
47
values := uid.Query()
48
values.Set("flag", flag.Name)
0 commit comments