From e78b3956628c994065555a7f3efe4ab64576651d Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 12 Mar 2022 15:24:19 +0100 Subject: [PATCH] feat: new short flag for RC upgrading --- cli/cli.go | 6 +++--- cli/internal/cli.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 90c706a0..5296592e 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -116,9 +116,9 @@ This command allows you to upgrade Abra in-place with the latest stable or release candidate. If you would like to install the latest release candidate, please pass the -"--rc" option. Please bear in mind that the latest release candidate may have -some catastrophic bugs contained in it. In any case, thank you very much for -the testing efforts! +"-r/--rc" option. Please bear in mind that the latest release candidate may +have some catastrophic bugs contained in it. In any case, thank you very much +for the testing efforts! `, Flags: []cli.Flag{internal.RCFlag}, Action: func(c *cli.Context) error { diff --git a/cli/internal/cli.go b/cli/internal/cli.go index 9eb94975..5fa6c812 100644 --- a/cli/internal/cli.go +++ b/cli/internal/cli.go @@ -248,7 +248,7 @@ var RC bool // RCFlag chooses the latest release candidate for install var RCFlag = &cli.BoolFlag{ - Name: "rc", + Name: "rc, r", Destination: &RC, Usage: "Insatll the latest release candidate", }