Merge branch 'master' into deps

This commit is contained in:
Ajitem Sahasrabuddhe 2019-11-28 20:11:06 +05:30 committed by GitHub
commit 974c4459c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 13 deletions

3
app.go
View File

@ -110,7 +110,6 @@ func NewApp() *App {
HelpName: filepath.Base(os.Args[0]),
Usage: "A new cli application",
UsageText: "",
Version: "0.0.0",
BashComplete: DefaultAppComplete,
Action: helpCommand.Action,
Compiled: compileTime(),
@ -141,7 +140,7 @@ func (a *App) Setup() {
}
if a.Version == "" {
a.Version = "0.0.0"
a.HideVersion = true
}
if a.BashComplete == nil {

View File

@ -192,15 +192,11 @@ func ExampleApp_Run_noAction() {
// USAGE:
// greet [global options] command [command options] [arguments...]
//
// VERSION:
// 0.0.0
//
// COMMANDS:
// help, h Shows a list of commands or help for one command
//
// GLOBAL OPTIONS:
// --help, -h show help (default: false)
// --version, -v print the version (default: false)
}
func ExampleApp_Run_subcommandNoAction() {
@ -256,8 +252,6 @@ func ExampleApp_Run_bashComplete_withShortFlag() {
// -x
// --help
// -h
// --version
// -v
}
func ExampleApp_Run_bashComplete_withLongFlag() {

View File

@ -154,14 +154,11 @@ NAME:
USAGE:
greet [global options] command [command options] [arguments...]
VERSION:
0.0.0
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS
--version Shows version information
--help, -h show help (default: false)
```
### Arguments