Merge pull request #49 from kytrinyx/short-version
Add shortcut for version flag
This commit is contained in:
commit
3ac875979d
2
app.go
2
app.go
@ -61,7 +61,7 @@ func (a *App) Run(arguments []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//append version/help flags
|
//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"})
|
a.appendFlag(BoolFlag{"help, h", "show help"})
|
||||||
|
|
||||||
// parse flags
|
// parse flags
|
||||||
|
Loading…
Reference in New Issue
Block a user