aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/comment.go')
-rw-r--r--commands/comment.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/comment.go b/commands/comment.go
index c05fd255..fc4b6a6b 100644
--- a/commands/comment.go
+++ b/commands/comment.go
@@ -43,9 +43,10 @@ func commentsTextOutput(comments []bug.Comment) {
}
var commentCmd = &cobra.Command{
- Use: "comment [<id>]",
- Short: "Display or add comments",
- RunE: runComment,
+ Use: "comment [<id>]",
+ Short: "Display or add comments",
+ PreRunE: loadRepo,
+ RunE: runComment,
}
func init() {