diff --git a/README.md b/README.md index a2ea519a1..1360a64d3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ USAGE: gopm [global options] command [command options] [arguments...] VERSION: - 0.6.0.1209 + 0.6.0.1211 COMMANDS: get fetch remote package(s) and dependencies to local repository @@ -29,11 +29,11 @@ COMMANDS: build link dependencies and go build install link dependencies and go install help, h Shows a list of commands or help for one command - + GLOBAL OPTIONS: - --noterm disable color output - --version, -v print the version - --help, -h show help + --noterm disable color output + --version print the version + --help, -h show help ``` diff --git a/cmd/get.go b/cmd/get.go index cb20a36f3..009fd5049 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -351,7 +351,7 @@ func updateByVcs(vcs, dirPath string) error { log.Error("", "\t"+err.Error()) } case "hg": - stdout, stderr, err := com.ExecCmd("hg", "pull") + _, stderr, err := com.ExecCmd("hg", "pull") if err != nil { log.Error("", "Error occurs when 'hg pull'") log.Error("", "\t"+err.Error()) @@ -360,7 +360,7 @@ func updateByVcs(vcs, dirPath string) error { log.Error("", "Error: "+stderr) } - stdout, stderr, err = com.ExecCmd("hg", "up") + _, stderr, err = com.ExecCmd("hg", "up") if err != nil { log.Error("", "Error occurs when 'hg up'") log.Error("", "\t"+err.Error())