aboutsummaryrefslogtreecommitdiffstats
path: root/commands/label_add.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/label_add.go')
-rw-r--r--commands/label_add.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/label_add.go b/commands/label_add.go
index 06c4e6c5..278d6472 100644
--- a/commands/label_add.go
+++ b/commands/label_add.go
@@ -34,9 +34,10 @@ func runLabelAdd(cmd *cobra.Command, args []string) error {
}
var labelAddCmd = &cobra.Command{
- Use: "add [<id>] <label>[...]",
- Short: "Add a label",
- RunE: runLabelAdd,
+ Use: "add [<id>] <label>[...]",
+ Short: "Add a label",
+ PreRunE: loadRepo,
+ RunE: runLabelAdd,
}
func init() {