diff --git a/build.go b/build.go index aa5a143..3e8be10 100644 --- a/build.go +++ b/build.go @@ -139,7 +139,9 @@ MAIN: name = tag.Prefix + name } - tag.Env = tag.EnvPrefix + tag.Env + if tag.Env != "" { + tag.Env = tag.EnvPrefix + tag.Env + } // Nested structs are either commands or args, unless they implement the Mapper interface. if field.value.Kind() == reflect.Struct && (tag.Cmd || tag.Arg) && k.registry.ForValue(fv) == nil {