Merge pull request #49 from kytrinyx/short-version

Add shortcut for version flag
This commit is contained in:
Jeremy Saenz 2013-12-02 15:02:54 -08:00
commit 3ac875979d

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