diff options
Diffstat (limited to 'commands/label_rm.go')
-rw-r--r-- | commands/label_rm.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/label_rm.go b/commands/label_rm.go index 445a56a4..f59ec02d 100644 --- a/commands/label_rm.go +++ b/commands/label_rm.go @@ -3,14 +3,14 @@ package commands import ( "github.com/spf13/cobra" - "github.com/MichaelMure/git-bug/commands/select" + _select "github.com/MichaelMure/git-bug/commands/select" ) func newLabelRmCommand() *cobra.Command { env := newEnv() cmd := &cobra.Command{ - Use: "rm [<id>] <label>[...]", + Use: "rm [ID] LABEL...", Short: "Remove a label from a bug.", PreRunE: loadBackend(env), PostRunE: closeBackend(env), @@ -28,7 +28,9 @@ func runLabelRm(env *Env, args []string) error { return err } - changes, _, err := b.ChangeLabels(nil, args) + removed := args + + changes, _, err := b.ChangeLabels(nil, removed) for _, change := range changes { env.out.Println(change) |