|
|
@ -103,6 +103,8 @@ type App struct {
|
|
|
|
// cli.go uses text/template to render templates. You can
|
|
|
|
// cli.go uses text/template to render templates. You can
|
|
|
|
// render custom help text by setting this variable.
|
|
|
|
// render custom help text by setting this variable.
|
|
|
|
CustomAppHelpTemplate string
|
|
|
|
CustomAppHelpTemplate string
|
|
|
|
|
|
|
|
// SliceFlagSeparator is used to customize the separator for SliceFlag, the default is ","
|
|
|
|
|
|
|
|
SliceFlagSeparator string
|
|
|
|
// Boolean to enable short-option handling so user can combine several
|
|
|
|
// Boolean to enable short-option handling so user can combine several
|
|
|
|
// single-character bool arguments into one
|
|
|
|
// single-character bool arguments into one
|
|
|
|
// i.e. foobar -o -v -> foobar -ov
|
|
|
|
// i.e. foobar -o -v -> foobar -ov
|
|
|
@ -239,6 +241,10 @@ func (a *App) Setup() {
|
|
|
|
if a.Metadata == nil {
|
|
|
|
if a.Metadata == nil {
|
|
|
|
a.Metadata = make(map[string]interface{})
|
|
|
|
a.Metadata = make(map[string]interface{})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(a.SliceFlagSeparator) != 0 {
|
|
|
|
|
|
|
|
defaultSliceFlagSeparator = a.SliceFlagSeparator
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (a *App) newRootCommand() *Command {
|
|
|
|
func (a *App) newRootCommand() *Command {
|
|
|
|