flag

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFlags

type CmdFlags map[string]flagInfo

func NewCmdFlags

func NewCmdFlags(ctx *cli.Context, totalFlags []cli.Flag) CmdFlags

func (CmdFlags) Bool

func (c CmdFlags) Bool(name string) bool

Bool returns false if not found

func (CmdFlags) CheckExclusive

func (c CmdFlags) CheckExclusive(args ...cli.Flag)

checkExclusive verifies that only a single instance of the provided flags was set by the user.

func (CmdFlags) Float64

func (c CmdFlags) Float64(name string) float64

Float64 returns 0 if not found

func (CmdFlags) Int

func (c CmdFlags) Int(name string) int

Int returns 0 if not found

func (CmdFlags) Int64

func (c CmdFlags) Int64(name string) int64

Int64 returns 0 if not found

func (CmdFlags) IsSet

func (c CmdFlags) IsSet(name string) bool

func (CmdFlags) Set

func (c CmdFlags) Set(name, value string)

func (CmdFlags) String

func (c CmdFlags) String(name string) string

String returns "" if not found

func (CmdFlags) Uint

func (c CmdFlags) Uint(name string) uint

Uint returns 0 if not found

func (CmdFlags) Uint64

func (c CmdFlags) Uint64(name string) uint64

Uint64 returns 0 if not found

Jump to

Keyboard shortcuts

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