diff options
author | Steve Moyer <smoyer1@selesy.com> | 2023-01-20 09:02:05 -0500 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2023-01-20 09:02:05 -0500 |
commit | 3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f (patch) | |
tree | 8a503d8e7369b9b037c8f070004dd37500c7d4d8 /commands/bug/bug_label_rm.go | |
parent | 14773b16ca4a16cbf84416894e254e41a01764b1 (diff) | |
download | git-bug-3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f.tar.gz |
docs(commands): try to make cleaned argument use more obvious
Diffstat (limited to 'commands/bug/bug_label_rm.go')
-rw-r--r-- | commands/bug/bug_label_rm.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/bug/bug_label_rm.go b/commands/bug/bug_label_rm.go index fca2ac46..d389830f 100644 --- a/commands/bug/bug_label_rm.go +++ b/commands/bug/bug_label_rm.go @@ -22,11 +22,13 @@ func newBugLabelRmCommand(env *execenv.Env) *cobra.Command { } func runBugLabelRm(env *execenv.Env, args []string) error { - b, removed, err := ResolveSelected(env.Backend, args) + b, cleanArgs, err := ResolveSelected(env.Backend, args) if err != nil { return err } + removed := cleanArgs + changes, _, err := b.ChangeLabels(nil, text.CleanupOneLineArray(removed)) for _, change := range changes { |