summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-21 17:37:14 +0000
committerGitHub <noreply@github.com>2022-06-21 17:37:14 +0000
commitb8b0fa80454fe0f3bcdab24bbf17cf0b6c2e8661 (patch)
treeb20a2993e7c5cc5015476c65e15edb8b4bccf207 /cmd
parent588d8ec371202b5f6101c11f4c3e2952c2843d85 (diff)
parent050693b2e773e6334dc200fc0c819e3829ac400d (diff)
downloadpodman-b8b0fa80454fe0f3bcdab24bbf17cf0b6c2e8661.tar.gz
podman-b8b0fa80454fe0f3bcdab24bbf17cf0b6c2e8661.tar.bz2
podman-b8b0fa80454fe0f3bcdab24bbf17cf0b6c2e8661.zip
Merge pull request #14683 from Luap99/bump-cobra
bump github.com/spf13/cobra from 1.4.0 to 1.5.0
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/main.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index c6ba69e94..929c8a757 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -1,7 +1,6 @@
package main
import (
- "errors"
"fmt"
"os"
@@ -27,7 +26,6 @@ import (
"github.com/containers/storage/pkg/reexec"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
- "github.com/spf13/pflag"
)
func main() {
@@ -103,13 +101,6 @@ func parseCommands() *cobra.Command {
}
func flagErrorFuncfunc(c *cobra.Command, e error) error {
- // cobra compares via == and not errors.Is so we cannot wrap that error.
- // This is required to make podman -h work.
- // This can be removed once https://github.com/spf13/cobra/pull/1730
- // is merged and vendored into podman.
- if errors.Is(e, pflag.ErrHelp) {
- return e
- }
e = fmt.Errorf("%w\nSee '%s --help'", e, c.CommandPath())
return e
}