Skip to content

Commit

Permalink
docs: improve help
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jul 8, 2024
1 parent e48618f commit 35e9a53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ func main() {
Name: "owner",
Aliases: []string{"o"},
Usage: "GitHub owner of the repository",
Category: "GitHub repository:",
Category: "GitHub Repository:",
Required: true,
},
&cli.StringFlag{
Name: "repo",
Aliases: []string{"r"},
Usage: "Name of the GitHub repository",
Category: "GitHub repository:",
Category: "GitHub Repository:",
Required: true,
},
&cli.StringFlag{
Name: "token",
EnvVars: []string{"GITHUB_TOKEN"},
FilePath: os.Getenv("DISTRIBUTAREPO_GITHUB_TOKEN_FILE"),
Usage: "GitHub token",
Category: "GitHub repository:",
Category: "GitHub Repository:",
Action: func(cliCtx *cli.Context, value string) error {
if value != "" {
_ = cliCtx.Set("token", strings.TrimSpace(value))
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
GitHub repository:
GitHub Repository:
--owner value, -o value GitHub owner of the repository
--repo value, -r value Name of the GitHub repository
Expand Down

0 comments on commit 35e9a53

Please sign in to comment.