diff options
Diffstat (limited to 'commands/comment_add.go')
-rw-r--r-- | commands/comment_add.go | 7 |
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() { |