aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/handler/packages/json.go')
-rw-r--r--pkg/app/handler/packages/json.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/app/handler/packages/json.go b/pkg/app/handler/packages/json.go
index 4af551c..24cb2e7 100644
--- a/pkg/app/handler/packages/json.go
+++ b/pkg/app/handler/packages/json.go
@@ -125,11 +125,13 @@ func getJSONUseflag(gpackage *models.Package) Use {
Description: useflag.Description,
})
}
- for _, useflag := range useExpands {
- useflags.UseExpand = append(useflags.UseExpand, Useflag{
- Name: useflag.Name,
- Description: useflag.Description,
- })
+ for _, flags := range useExpands {
+ for _, flag := range flags {
+ useflags.UseExpand = append(useflags.UseExpand, Useflag{
+ Name: flag.Name,
+ Description: flag.Description,
+ })
+ }
}
return useflags
}