Commit 22c1b979 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1729 from technosophos/fix/1708-rollback-help

fix(helm): fix rollback documentation
parents 79b6c0a7 a2367274
...@@ -27,8 +27,11 @@ import ( ...@@ -27,8 +27,11 @@ import (
) )
const rollbackDesc = ` const rollbackDesc = `
This command rolls back a release to the previous revision. This command rolls back a release to a previous revision.
The argument of the rollback command is the name of a release.
The first argument of the rollback command is the name of a release, and the
second is a revision (version) number. To see revision numbers, run
'helm history RELEASE'.
` `
type rollbackCmd struct { type rollbackCmd struct {
...@@ -48,7 +51,7 @@ func newRollbackCmd(c helm.Interface, out io.Writer) *cobra.Command { ...@@ -48,7 +51,7 @@ func newRollbackCmd(c helm.Interface, out io.Writer) *cobra.Command {
} }
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "rollback [RELEASE]", Use: "rollback [flags] [RELEASE] [REVISION]",
Short: "roll back a release to a previous revision", Short: "roll back a release to a previous revision",
Long: rollbackDesc, Long: rollbackDesc,
PersistentPreRunE: setupConnection, PersistentPreRunE: setupConnection,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment