Skip to content

Commit

Permalink
Merge pull request #36 from DeNA/fix-usage
Browse files Browse the repository at this point in the history
Fix a binary name for gh-action in usage
  • Loading branch information
Kuniwak authored Apr 23, 2024
2 parents 2d0ad1c + cadb00b commit 39b60d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/gh-action/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ type Parser func(args []string, procInout cli.ProcessInout, env cli.Env) (*Optio

func NewParser() Parser {
return func(args []string, procInout cli.ProcessInout, env cli.Env) (*Options, error) {
flags := flag.NewFlagSet("unity-meta-check-gh-action", flag.ContinueOnError)
flags := flag.NewFlagSet("gh-action", flag.ContinueOnError)
flags.SetOutput(procInout.Stderr)
flags.Usage = func() {
_, _ = fmt.Fprintln(flags.Output(), "usage: unity-meta-check-gh-action -inputs-json <json>")
_, _ = fmt.Fprintln(flags.Output(), "usage: gh-action -inputs-json <json>")
flags.PrintDefaults()
}

Expand Down

0 comments on commit 39b60d9

Please sign in to comment.