commands: Start of flag cleaning

See #4598
This commit is contained in:
Bjørn Erik Pedersen 2018-04-09 17:20:18 +02:00
parent e614d8a57c
commit 1157fef859
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
4 changed files with 61 additions and 67 deletions

View file

@ -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
}