summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-09 17:20:18 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-11 09:48:55 +0200
commit1157fef85908ea54883fe0dba6adc4861ba02162 (patch)
treeb219679fd16bb7d804bc72e90c039727fe9adb76 /commands/server.go
parente614d8a57c2ff5eef9270d51fcc6518398d7ff88 (diff)
commands: Start of flag cleaning
See #4598
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/server.go b/commands/server.go
index e2a9fa021..8e778875f 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -116,6 +116,7 @@ var serverPorts []int
func server(cmd *cobra.Command, args []string) error {
// If a Destination is provided via flag write to disk
+ destination, _ := cmd.Flags().GetString("destination")
if destination != "" {
renderToDisk = true
}