File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ options:
2323 -S=settings.yaml Load the settings from the provided yaml.
2424 Initializes from RENDERIZER environment.
2525 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.
2827 -M[=(default|zero|error)] The missingkey template option. Default: error
2928 Initializes from RENDERIZER_MISSINGKEY environment.
3029 -V Enable verbose output.
@@ -53,9 +52,10 @@ type Settings struct {
5352
5453//
5554var settings = Settings {
56- Capitalize : true ,
57- MissingKey : "error" ,
58- TimeFormat : "20060102T150405" ,
55+ Capitalize : true ,
56+ MissingKey : "error" ,
57+ TimeFormat : "20060102T150405" ,
58+ Environment : "env" ,
5959}
6060
6161//
@@ -103,8 +103,6 @@ func main() {
103103 nv := strings .SplitN (arg , "=" , 2 )
104104 if len (nv ) != 1 {
105105 settings .Environment = nv [1 ]
106- } else {
107- settings .Environment = "env"
108106 }
109107 case 'v' , 'V' :
110108 settings .Verbose = true
You can’t perform that action at this time.
0 commit comments