aboutsummaryrefslogtreecommitdiffstats
path: root/commands/status_close.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/status_close.go')
-rw-r--r--commands/status_close.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/status_close.go b/commands/status_close.go
index fd713a39..ec4e503e 100644
--- a/commands/status_close.go
+++ b/commands/status_close.go
@@ -27,9 +27,10 @@ func runStatusClose(cmd *cobra.Command, args []string) error {
}
var closeCmd = &cobra.Command{
- Use: "close [<id>]",
- Short: "Mark a bug as closed",
- RunE: runStatusClose,
+ Use: "close [<id>]",
+ Short: "Mark a bug as closed",
+ PreRunE: loadRepo,
+ RunE: runStatusClose,
}
func init() {