From 1676ce983b459b86cedb2f95ef408ee58db967e1 Mon Sep 17 00:00:00 2001 From: openset Date: Sun, 19 May 2019 11:03:08 +0800 Subject: [PATCH 1/2] Update: CmdUpdate --- internal/update/update.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/update/update.go b/internal/update/update.go index c3ab61201..233ca470e 100644 --- a/internal/update/update.go +++ b/internal/update/update.go @@ -1,6 +1,7 @@ package update import ( + "fmt" "os" "os/exec" @@ -10,8 +11,8 @@ import ( var CmdUpdate = &base.Command{ Run: runUpdate, UsageLine: "update", - Short: "update self", - Long: "automates testing the packages.", + Short: "update or upgrade self", + Long: fmt.Sprintf("fetch the newest version of %s.", base.CmdName), } func runUpdate(cmd *base.Command, args []string) { From 7bcd712153c03954ec4629bd9a9c1bc9a729c33c Mon Sep 17 00:00:00 2001 From: openset Date: Sun, 19 May 2019 11:04:26 +0800 Subject: [PATCH 2/2] Update: CmdUpdate --- helper/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/README.md b/helper/README.md index b7d09d28b..f1ad5356f 100644 --- a/helper/README.md +++ b/helper/README.md @@ -21,7 +21,7 @@ The commands are: open open a problem solution in browser test run go test description build all problems description file - update update self + update update or upgrade self clean remove cached files version print leetcode version help show command usage