argparser

package
v0.0.0-...-badd073 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Verbose    []bool   `short:"v" long:"verbose" description:"Show verbose debug information"`
	ConfigFile string   `short:"c" long:"config" description:"Config file"`
	UserCmd    []string `positional-arg-name:"COMMAND" positional-args:"true" required:"true"`
}

func MustParse

func MustParse(args []string) Arguments

func Parse

func Parse(args []string) (Arguments, error)

Jump to

Keyboard shortcuts

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