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.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/label_rm.go b/commands/label_rm.go
index 5e9c8f24..e53ac09a 100644
--- a/commands/label_rm.go
+++ b/commands/label_rm.go
@@ -34,9 +34,10 @@ func runLabelRm(cmd *cobra.Command, args []string) error {
}
var labelRmCmd = &cobra.Command{
- Use: "rm [<id>] <label>[...]",
- Short: "Remove a label",
- RunE: runLabelRm,
+ Use: "rm [<id>] <label>[...]",
+ Short: "Remove a label",
+ PreRunE: loadRepo,
+ RunE: runLabelRm,
}
func init() {