diff --git a/command/agent/command.go b/command/agent/command.go index a8d1ef0456..6cb2e4a163 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -49,6 +49,7 @@ func (c *Command) readConfig() *Config { cmdFlags.StringVar(&cmdConfig.NodeName, "node", "", "node name") cmdFlags.StringVar(&cmdConfig.Datacenter, "dc", "", "node datacenter") cmdFlags.StringVar(&cmdConfig.DataDir, "data-dir", "", "path to the data directory") + cmdFlags.StringVar(&cmdConfig.UiDir, "ui-dir", "", "path to the web UI directory") cmdFlags.BoolVar(&cmdConfig.Server, "server", false, "run agent as server") cmdFlags.BoolVar(&cmdConfig.Bootstrap, "bootstrap", false, "enable server bootstrap mode") @@ -483,6 +484,7 @@ Options: -node=hostname Name of this node. Must be unique in the cluster -protocol=N Sets the protocol version. Defaults to latest. -server Switches agent to server mode. + -ui-dir=path Path to directory containing the Web UI resources ` return strings.TrimSpace(helpText)