Add shortcut for version flag

This commit is contained in:
Katrina Owen 2013-12-02 14:55:24 -08:00
parent a4d75ab69e
commit 7d08fb3da5

2
app.go
View File

@ -61,7 +61,7 @@ func (a *App) Run(arguments []string) error {
}
//append version/help flags
a.appendFlag(BoolFlag{"version", "print the version"})
a.appendFlag(BoolFlag{"version, v", "print the version"})
a.appendFlag(BoolFlag{"help, h", "show help"})
// parse flags