From b1be4ce8295ade0e58e0c8272d435c9004f99cbc Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 28 Feb 2026 11:46:34 -0700 Subject: [PATCH] =?UTF-8?q?fix(monorel):=20rename=20bump=20flag=20-m=20?= =?UTF-8?q?=E2=86=92=20-r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -m was already used by git commit, making copy-pasting confusing. -r (for "release component") avoids that conflict. --- tools/monorel/main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/monorel/main.go b/tools/monorel/main.go index 6897bb9..bbb184f 100644 --- a/tools/monorel/main.go +++ b/tools/monorel/main.go @@ -10,7 +10,7 @@ // monorel release ... // Generate .goreleaser.yaml and print a ready-to-review bash release script. // -// monorel bump [-m major|minor|patch] ... +// monorel bump [-r major|minor|patch] ... // Create a new semver git tag at HEAD for each module (default: patch). // // monorel init ... @@ -146,17 +146,17 @@ func runRelease(args []string) { func runBump(args []string) { fs := flag.NewFlagSet("monorel bump", flag.ExitOnError) var component string - fs.StringVar(&component, "m", "patch", "version component to bump: major, minor, or patch") + fs.StringVar(&component, "r", "patch", "version component to bump: major, minor, or patch") fs.Usage = func() { - fmt.Fprintln(os.Stderr, "usage: monorel bump [-m major|minor|patch] ...") + fmt.Fprintln(os.Stderr, "usage: monorel bump [-r major|minor|patch] ...") fmt.Fprintln(os.Stderr, "") fmt.Fprintln(os.Stderr, "Creates a new semver git tag at HEAD for the module of each binary path.") fmt.Fprintln(os.Stderr, "The tag is created locally; push it with 'git push --tags'.") fmt.Fprintln(os.Stderr, "") fmt.Fprintln(os.Stderr, "Examples:") fmt.Fprintln(os.Stderr, " monorel bump ./cmd/csvauth # bump patch (default)") - fmt.Fprintln(os.Stderr, " monorel bump -m minor ./cmd/csvauth # bump minor") - fmt.Fprintln(os.Stderr, " monorel bump -m major ./cmd/csvauth # bump major") + fmt.Fprintln(os.Stderr, " monorel bump -r minor ./cmd/csvauth # bump minor") + fmt.Fprintln(os.Stderr, " monorel bump -r major ./cmd/csvauth # bump major") fmt.Fprintln(os.Stderr, "") fs.PrintDefaults() } @@ -166,7 +166,7 @@ func runBump(args []string) { case "major", "minor", "patch": // valid default: - fmt.Fprintf(os.Stderr, "monorel bump: -m must be major, minor, or patch (got %q)\n", component) + fmt.Fprintf(os.Stderr, "monorel bump: -r must be major, minor, or patch (got %q)\n", component) os.Exit(2) }