Skip to content

Commit 69127b0

Browse files
author
Shuo
authored
Merge pull request #544 from openset/develop
Update: CmdUpdate
2 parents e2c36c5 + 7bcd712 commit 69127b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: helper/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The commands are:
2121
open open a problem solution in browser
2222
test run go test
2323
description build all problems description file
24-
update update self
24+
update update or upgrade self
2525
clean remove cached files
2626
version print leetcode version
2727
help show command usage

Diff for: internal/update/update.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package update
22

33
import (
4+
"fmt"
45
"os"
56
"os/exec"
67

@@ -10,8 +11,8 @@ import (
1011
var CmdUpdate = &base.Command{
1112
Run: runUpdate,
1213
UsageLine: "update",
13-
Short: "update self",
14-
Long: "automates testing the packages.",
14+
Short: "update or upgrade self",
15+
Long: fmt.Sprintf("fetch the newest version of %s.", base.CmdName),
1516
}
1617

1718
func runUpdate(cmd *base.Command, args []string) {

0 commit comments

Comments
 (0)