The flags are hidden for now. Adding propagation to tailscaled and
persistence only. The prefs field is wrapped in a struct to allow for
future expansion (like update schedule).
Updates #6907
Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
setf.StringVar(&setArgs.hostname,"hostname","","hostname to use instead of the one provided by the OS")
setf.StringVar(&setArgs.advertiseRoutes,"advertise-routes","","routes to advertise to other nodes (comma-separated, e.g. \"10.0.0.0/8,192.168.0.0/24\") or empty string to not advertise routes")
setf.BoolVar(&setArgs.advertiseDefaultRoute,"advertise-exit-node",false,"offer to be an exit node for internet traffic for the tailnet")
setf.BoolVar(&setArgs.updateCheck,"update-check",true,"HIDDEN: notify about available Tailscale updates")
setf.BoolVar(&setArgs.updateApply,"auto-update",false,"HIDDEN: automatically update to the latest available version")
ifsafesocket.GOOSUsesPeerCreds(goos){
setf.StringVar(&setArgs.opUser,"operator","","Unix username to allow to operate on tailscaled without sudo")
// When adding new flags, prefer to put them under "tailscale set" instead
// of here. Setting preferences via "tailscale up" is deprecated.
upf.BoolVar(&upArgs.qr,"qr",false,"show QR code for login URLs")
upf.StringVar(&upArgs.authKeyOrFile,"auth-key","",`node authorization key; if it begins with "file:", then it's a path to a file containing the authkey`)