Skip to content

Commit

Permalink
Merge pull request #207 from zabawaba99/master
Browse files Browse the repository at this point in the history
Fix verbose flag
  • Loading branch information
Tonkpils committed Jul 29, 2015
2 parents 440a42d + 5c0c145 commit 79f80d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The exercism CLI follows [semantic versioning](http://semver.org/).

* [#200](https://github.com/exercism/cli/pull/200): Add guard to unsubmit command - [@kytrinyx](https://github.com/kytrinyx)
* [#204](https://github.com/exercism/cli/pull/204): Improve upgrade failure messages and increase timeout - [@Tonkpils](https://github.com/Tonkpils)
* [#206](https://github.com/exercism/cli/pull/207): Fix verbose flag and removed short `-v` - [@zabawaba99](https://github.com/zabawaba99)
* **Your contribution here**

## v2.2.0 (2015-06-27)
Expand Down
10 changes: 5 additions & 5 deletions cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Submit(ctx *cli.Context) {
log.Fatal(err)
}

if ctx.GlobalBool("debug") {
if ctx.GlobalBool("verbose") {
log.Printf("Exercises dir: %s", c.Dir)
dir, err := os.Getwd()
if err != nil {
Expand All @@ -41,13 +41,13 @@ func Submit(ctx *cli.Context) {
log.Fatal(err)
}

if ctx.GlobalBool("debug") {
if ctx.GlobalBool("verbose") {
log.Printf("eval symlinks (dir): %s", dir)
}

files := []string{}
for _, filename := range ctx.Args() {
if ctx.GlobalBool("debug") {
if ctx.GlobalBool("verbose") {
log.Printf("file name: %s", filename)
}

Expand All @@ -61,7 +61,7 @@ func Submit(ctx *cli.Context) {
log.Fatal(err)
}

if ctx.GlobalBool("debug") {
if ctx.GlobalBool("verbose") {
log.Printf("absolute path: %s", file)
}

Expand All @@ -70,7 +70,7 @@ func Submit(ctx *cli.Context) {
log.Fatal(err)
}

if ctx.GlobalBool("debug") {
if ctx.GlobalBool("verbose") {
log.Printf("eval symlinks (file): %s", file)
}

Expand Down
2 changes: 1 addition & 1 deletion exercism/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func main() {
EnvVar: "XDG_CONFIG_HOME,EXERCISM_CONFIG_FILE",
},
cli.BoolFlag{
Name: "verbose, v",
Name: "verbose",
Usage: "turn on verbose logging",
},
cli.BoolFlag{
Expand Down

0 comments on commit 79f80d7

Please sign in to comment.