docopt

package
v0.0.62-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptsToLetsCli

func OptsToLetsCli(opts Opts) map[string]string

func OptsToLetsOpt

func OptsToLetsOpt(opts Opts) map[string]string

func ParseDocoptParts added in v0.0.62

func ParseDocoptParts(docopt string) docoptParts

Types

type HelpOption added in v0.0.62

type HelpOption struct {
	Display     string `json:"display"`
	Description string `json:"description"`
	Name        string `json:"name,omitempty"`
	Short       string `json:"short,omitempty"`
	Long        string `json:"long,omitempty"`
	Kind        string `json:"kind,omitempty"`
}

func ParseHelpOptions added in v0.0.62

func ParseHelpOptions(docopt string, cmdName string) []HelpOption

type Option

type Option = dopt.Option

aliases for docopt types.

func ParseOptions

func ParseOptions(docopts string, cmdName string) ([]Option, error)

ParseOptions parses docopts only to get all available options for a command.

type Opts

type Opts = dopt.Opts

aliases for docopt types.

func Parse

func Parse(cmdName string, args []string, docopts string) (Opts, error)

Parse parses docopts for command options with args from os.Args.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL