new /v2 subdirectory
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type cliOptionHelp struct {
|
||||
cliOptionBase
|
||||
}
|
||||
|
||||
func (opt *cliOptionHelp) init() {
|
||||
}
|
||||
|
||||
func (opt *cliOptionHelp) requiresValue() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (opt *cliOptionHelp) getDefaultValue() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (opt *cliOptionHelp) getTemplate() string {
|
||||
return opt.makeOptSimpleTemplate(false, false, "")
|
||||
}
|
||||
|
||||
func (opt *cliOptionHelp) parse(parser cliParser, argIndex int, valuePtr *string) (skipNextArg bool, value string, err error) {
|
||||
parser.PrintUsage()
|
||||
err = io.EOF
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user