aboutsummaryrefslogtreecommitdiffstats
path: root/commands/pull.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-16 15:21:21 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-16 15:21:21 +0200
commitd3893a5e04868fb99df28c8da62a0ee59d7e9064 (patch)
tree0f702ca72b82cd2429c4451f77baf99156525852 /commands/pull.go
parent9423e7fdb6f70afb37f567d86a97594b06d43eb1 (diff)
downloadgit-bug-d3893a5e04868fb99df28c8da62a0ee59d7e9064.tar.gz
rework the commands thing and add a "commands" command to list all commands
Diffstat (limited to 'commands/pull.go')
-rw-r--r--commands/pull.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/pull.go b/commands/pull.go
index b408c285..dbff4fb1 100644
--- a/commands/pull.go
+++ b/commands/pull.go
@@ -25,8 +25,7 @@ func runPull(repo repository.Repo, args []string) error {
// showCmd defines the "push" subcommand.
var pullCmd = &Command{
- Usage: func(arg0 string) {
- fmt.Printf("Usage: %s pull [<remote>]\n", arg0)
- },
- RunMethod: runPull,
+ Description: "Pull bugs update from a git remote",
+ Usage: "[<remote>]",
+ RunMethod: runPull,
}