options

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptPath          = "path"
	OptExpectArray   = "expect-array"
	OptVersion       = "version"
	OptPreserveArray = "preserve-array"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*flag.FlagSet
	Options Set
}

func New

func New(args []string) (Handler, error)

New create an option handler that will parse the options from command line args

type Set

type Set struct {
	ExpectArray      bool
	PreserveArray    bool
	JustPrintVersion bool
	Path             string
	Args             []string
}

Jump to

Keyboard shortcuts

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