remove extra var declaration
@@ -39,7 +39,8 @@ import (
var forceEnrollmentExtension *bool
func init() {
- forceEnrollmentExtension = runCmd.Flags().BoolP("extend", "e", false, "force the router on startup to extend enrollment certificates")
+ //flags are added to an internal map and read later on, see getFlags()
+ runCmd.Flags().BoolP("extend", "e", false, "force the router on startup to extend enrollment certificates")
root.AddCommand(runCmd)
}
