Skip to content

Commit

Permalink
using 'verbose' flag instead of 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
zabawaba99 committed Jul 29, 2015
1 parent ed3395e commit 47d3ed3
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 47d3ed3

Please sign in to comment.