cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	UpdateEvery int
	Debug       bool   `short:"d" long:"debug" description:"debug mode"`
	Module      string `short:"m" long:"modules" description:"modules name" default:"all"`
	ConfigDir   string `short:"c" long:"config" description:"config dir"`
}

Option defines command line options.

func Parse

func Parse(args []string) (*Option, error)

Parse returns parsed command-line flags in Option struct

Jump to

Keyboard shortcuts

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