From c67c8e60ccba736ed06f6a86c1fa2922e81a285f Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 15 Mar 2020 21:18:31 -0600 Subject: cmd: fmt: --write -> --overwrite to make it clear it's destructive --- cmd/commands.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/commands.go') diff --git a/cmd/commands.go b/cmd/commands.go index f98fbfa..d4edc66 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -244,8 +244,8 @@ provisioning stages.`, RegisterCommand(Command{ Name: "fmt", - Func: cmdFormatConfig, - Usage: "[--write] []", + Func: cmdFmt, + Usage: "[--overwrite] []", Short: "Formats a Caddyfile", Long: ` Formats the Caddyfile by adding proper indentation and spaces to improve @@ -255,7 +255,7 @@ If --write is specified, the output will be written to the config file directly instead of printing it.`, Flags: func() *flag.FlagSet { fs := flag.NewFlagSet("format", flag.ExitOnError) - fs.Bool("write", false, "Over-write the output to specified file") + fs.Bool("overwrite", false, "Overwrite the input file with the results") return fs }(), }) -- cgit v1.2.3