docopt

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 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

Types

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