Add shortcut for version flag
This commit is contained in:
parent
a4d75ab69e
commit
7d08fb3da5
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