summaryrefslogtreecommitdiff
path: root/cmd/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/commands.go')
-rw-r--r--cmd/commands.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/commands.go b/cmd/commands.go
index f562430..1e2c40d 100644
--- a/cmd/commands.go
+++ b/cmd/commands.go
@@ -296,6 +296,11 @@ is always printed to stdout.`,
Long: `
Downloads an updated Caddy binary with the same modules/plugins at the
latest versions. EXPERIMENTAL: May be changed or removed.`,
+ Flags: func() *flag.FlagSet {
+ fs := flag.NewFlagSet("upgrade", flag.ExitOnError)
+ fs.Bool("keep-backup", false, "Keep the backed up binary, instead of deleting it")
+ return fs
+ }(),
})
RegisterCommand(Command{
@@ -308,6 +313,11 @@ Downloads an updated Caddy binary with the specified packages (module/plugin)
added. Retains existing packages. Returns an error if the any of packages are
already included. EXPERIMENTAL: May be changed or removed.
`,
+ Flags: func() *flag.FlagSet {
+ fs := flag.NewFlagSet("add-package", flag.ExitOnError)
+ fs.Bool("keep-backup", false, "Keep the backed up binary, instead of deleting it")
+ return fs
+ }(),
})
RegisterCommand(Command{
@@ -320,6 +330,11 @@ Downloads an updated Caddy binaries without the specified packages (module/plugi
Returns an error if any of the packages are not included.
EXPERIMENTAL: May be changed or removed.
`,
+ Flags: func() *flag.FlagSet {
+ fs := flag.NewFlagSet("remove-package", flag.ExitOnError)
+ fs.Bool("keep-backup", false, "Keep the backed up binary, instead of deleting it")
+ return fs
+ }(),
})
}