Skip to content

Commit 9d0554e

Browse files
committed
remove init
1 parent 8cac955 commit 9d0554e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/src/version.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ const versionExamples = `Examples:
2424
$ src version
2525
`
2626

27-
var versionCommandv2 = clicompat.WithLegacyCommandHelp(&cli.Command{
28-
Name: "version",
29-
Usage: "display and compare the src-cli version against the recommended version for your instance",
30-
UsageText: "src version [options]",
27+
var versionCommandv2 = clicompat.Wrap(&cli.Command{
28+
Name: "version",
29+
Usage: "display and compare the src-cli version against the recommended version for your instance",
30+
UsageText: "src version [options]",
31+
OnUsageError: clicompat.OnUsageError,
3132
Description: `
3233
` + versionExamples,
3334
Flags: clicompat.WithAPIFlags(

0 commit comments

Comments
 (0)