options

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionParser

type OptionParser struct {
	// contains filtered or unexported fields
}

func (*OptionParser) CreateManPage

func (p *OptionParser) CreateManPage() string

func (*OptionParser) Parse

func (p *OptionParser) Parse() (Options, error)

type Options

type Options struct {
	Default      bool   `long:"default" description:"Load the default menu to get to know Hotshell"`
	File         string `short:"f" long:"file" description:"Specify an alternate definition file (default: ./hs.js)" value-name:"FILE"`
	GenerateDemo bool   `long:"generate-demo" description:"Generate an interactive HTML demo to stdout"`
	GenerateMd   bool   `long:"generate-md" description:"Generate a markdown documentation of the menu to stdout"`
	Version      bool   `short:"v" long:"version" description:"Print version information and quit"`
}

Jump to

Keyboard shortcuts

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