From 35e9a53f00419b154e738df82539c7e32b75e4e3 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 8 Jul 2024 17:22:33 +0200 Subject: [PATCH] docs: improve help --- main.go | 6 +++--- readme.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 7e5bda0..0f20c2a 100644 --- a/main.go +++ b/main.go @@ -52,14 +52,14 @@ 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{ @@ -67,7 +67,7 @@ func main() { 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)) diff --git a/readme.md b/readme.md index bd6a223..64cdf70 100644 --- a/readme.md +++ b/readme.md @@ -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