aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bug/bug_label_new.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2023-01-20 09:02:05 -0500
committerSteve Moyer <smoyer1@selesy.com>2023-01-20 09:02:05 -0500
commit3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f (patch)
tree8a503d8e7369b9b037c8f070004dd37500c7d4d8 /commands/bug/bug_label_new.go
parent14773b16ca4a16cbf84416894e254e41a01764b1 (diff)
downloadgit-bug-3f764397dbd49910e549d3ef3c0d26e3ca2f8b0f.tar.gz
docs(commands): try to make cleaned argument use more obvious
Diffstat (limited to 'commands/bug/bug_label_new.go')
-rw-r--r--commands/bug/bug_label_new.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/bug/bug_label_new.go b/commands/bug/bug_label_new.go
index c8c3b811..9fff851c 100644
--- a/commands/bug/bug_label_new.go
+++ b/commands/bug/bug_label_new.go
@@ -22,11 +22,13 @@ func newBugLabelNewCommand(env *execenv.Env) *cobra.Command {
}
func runBugLabelNew(env *execenv.Env, args []string) error {
- b, added, err := ResolveSelected(env.Backend, args)
+ b, cleanArgs, err := ResolveSelected(env.Backend, args)
if err != nil {
return err
}
+ added := cleanArgs
+
changes, _, err := b.ChangeLabels(text.CleanupOneLineArray(added), nil)
for _, change := range changes {