File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ options:
23
23
-S=settings.yaml Load the settings from the provided yaml.
24
24
Initializes from RENDERIZER environment.
25
25
If not set, tries .renderizer.yaml in the current directory.
26
- -E[=name] Load the environment into the variables map as _env
27
- or name if provided
26
+ -E=name Load the environment into the variable name instead of as env.
28
27
-M[=(default|zero|error)] The missingkey template option. Default: error
29
28
Initializes from RENDERIZER_MISSINGKEY environment.
30
29
-V Enable verbose output.
@@ -53,9 +52,10 @@ type Settings struct {
53
52
54
53
//
55
54
var settings = Settings {
56
- Capitalize : true ,
57
- MissingKey : "error" ,
58
- TimeFormat : "20060102T150405" ,
55
+ Capitalize : true ,
56
+ MissingKey : "error" ,
57
+ TimeFormat : "20060102T150405" ,
58
+ Environment : "env" ,
59
59
}
60
60
61
61
//
@@ -103,8 +103,6 @@ func main() {
103
103
nv := strings .SplitN (arg , "=" , 2 )
104
104
if len (nv ) != 1 {
105
105
settings .Environment = nv [1 ]
106
- } else {
107
- settings .Environment = "env"
108
106
}
109
107
case 'v' , 'V' :
110
108
settings .Verbose = true
You can’t perform that action at this time.
0 commit comments