File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ func cloneRequest(req *http.Request) *http.Request {
292
292
// addMissingEnvironmentFlags sets Envar on any flag which has
293
293
// the "web." prefix which doesn't already have an Envar set.
294
294
func addMissingEnvironmentFlags (ka * kingpin.Application ) {
295
- for _ , f := range ka .Model ().FlagGroupModel . Flags {
295
+ for _ , f := range ka .Model ().Flags {
296
296
if strings .HasPrefix (f .Name , "web." ) && f .Envar == "" {
297
297
retrievedFlag := ka .GetFlag (f .Name )
298
298
if retrievedFlag != nil {
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func TestAddMissingEnvironmentFlags(t *testing.T) {
130
130
// instead of checking the envar of each matching flag name
131
131
for k , v := range expectedMatches {
132
132
matched := false
133
- for _ , f := range kingpin .CommandLine .Model ().FlagGroupModel . Flags {
133
+ for _ , f := range kingpin .CommandLine .Model ().Flags {
134
134
if f .Name == k && f .Envar == v {
135
135
matched = true
136
136
}
You can’t perform that action at this time.
0 commit comments