Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatih Cetinkaya committed Nov 12, 2015
1 parent d5e37dc commit a360c01
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,17 @@ func main() {
}
cli.Init()

// Echo command
// Run commands
if cli.Command == "echo" {
// Echo command
fmt.Println(strings.Join(cli.CommandArgs, " "))
os.Exit(0)
}

// Version
if versionFlag {
} else if versionFlag {
// Version
cli.PrintVersion(true)
os.Exit(0)
} else {
// Default
cli.PrintUsage()
}

// Default
cli.PrintUsage()
os.Exit(0)
}
```

Expand Down

0 comments on commit a360c01

Please sign in to comment.