Fix the static configuration generation for environment variables
This commit is contained in:
parent
bf4a578bbb
commit
3c5e6fe7f8
2 changed files with 8 additions and 3 deletions
|
@ -64,7 +64,12 @@ THIS FILE MUST NOT BE EDITED BY HAND
|
|||
continue
|
||||
}
|
||||
|
||||
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ")
|
||||
if prefix == "" {
|
||||
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "_n") + "`: ")
|
||||
} else {
|
||||
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ")
|
||||
}
|
||||
|
||||
if flat.Default == "" {
|
||||
w.writeln(flat.Description)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue