Add decent usage message

This commit is contained in:
spf13
2013-09-12 10:32:51 -04:00
parent 6067837866
commit 8858462331
2 changed files with 140 additions and 21 deletions

View File

@ -35,7 +35,7 @@ var cmdEcho = &Command{
}
var cmdTimes = &Command{
Use: "times [string to echo]",
Use: "times [# times] [string to echo]",
Short: "Echo anything to the screen more times",
Long: `an slightly useless command for testing.`,
Run: timesRunner,
@ -69,7 +69,7 @@ func commandInit() {
func initialize() *Commander {
tt, tp, te = nil, nil, nil
var c = NewCommander()
c.SetName("cobra test")
c.SetName("cobratest")
flagInit()
commandInit()
return c