Skip to content

Commit

Permalink
cmd/wit-bindgen-go: make --version argument local to root command
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Oct 30, 2024
1 parent be437e2 commit 0960799
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cmd/wit-bindgen-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ var Command = &cli.Command{
version,
},
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "force-wit",
Usage: "force loading WIT via wasm-tools",
},
&cli.BoolFlag{
Name: "version",
Usage: "print the version",
HideDefault: true,
Local: true,
},
&cli.BoolFlag{
Name: "force-wit",
Usage: "force loading WIT via wasm-tools",
},
},
Version: witcli.Version(),
HideVersion: true,
Action: action,
Action: action,
}

func action(ctx context.Context, cmd *cli.Command) error {
Expand Down

0 comments on commit 0960799

Please sign in to comment.