flag

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 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 Flag

type Flag struct {
	Template,
	Data,
	Static,
	Addr string
	Serve,
	ShowHelp,
	ShowVersion bool
	Usage func()
}

Args represents the available command line arguments available to the user.

func New

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

New parses the command line arguments and returns an Args object.

func (Flag) Valid

func (f Flag) Valid() bool

Validate that at least a template and some data were specified via the CLI.

Jump to

Keyboard shortcuts

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