aboutsummaryrefslogtreecommitdiffstats
path: root/commands/label_rm.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/label_rm.go')
-rw-r--r--commands/label_rm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/label_rm.go b/commands/label_rm.go
index f59ec02d..9fb3e096 100644
--- a/commands/label_rm.go
+++ b/commands/label_rm.go
@@ -4,6 +4,7 @@ import (
"github.com/spf13/cobra"
_select "github.com/MichaelMure/git-bug/commands/select"
+ "github.com/MichaelMure/git-bug/util/text"
)
func newLabelRmCommand() *cobra.Command {
@@ -30,7 +31,7 @@ func runLabelRm(env *Env, args []string) error {
removed := args
- changes, _, err := b.ChangeLabels(nil, removed)
+ changes, _, err := b.ChangeLabels(nil, text.CleanupOneLineArray(removed))
for _, change := range changes {
env.out.Println(change)