aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment_add.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/comment_add.go')
-rw-r--r--commands/comment_add.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/comment_add.go b/commands/comment_add.go
index 8736f9c2..6ee3fc15 100644
--- a/commands/comment_add.go
+++ b/commands/comment_add.go
@@ -53,9 +53,10 @@ func runCommentAdd(cmd *cobra.Command, args []string) error {
}
var commentAddCmd = &cobra.Command{
- Use: "add [<id>]",
- Short: "Add a new comment",
- RunE: runCommentAdd,
+ Use: "add [<id>]",
+ Short: "Add a new comment",
+ PreRunE: loadRepo,
+ RunE: runCommentAdd,
}
func init() {