getopt

package module
v0.0.0-...-bd8e7de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: LGPL-3.0 Imports: 5 Imported by: 0

README

GetoptGo

Library to use getopt in Go with the ability to have empty parameters and required ones.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getopt

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

func New

func New() Getopt

func (*Getopt) BoolLong

func (self *Getopt) BoolLong(name *string, shortname *rune, description string) *bool

func (*Getopt) CheckRequiredOptions

func (self *Getopt) CheckRequiredOptions() (bool, string, string)

func (*Getopt) NoOptionArgs

func (self *Getopt) NoOptionArgs() []string

func (*Getopt) Parse

func (self *Getopt) Parse(args []string)

func (*Getopt) ParseArgv

func (self *Getopt) ParseArgv()

func (*Getopt) StringLong

func (self *Getopt) StringLong(name *string, shortname *rune, required bool, description string) **string

func (*Getopt) UInt64Long

func (self *Getopt) UInt64Long(name *string, shortname *rune, required bool, description string) **uint64

func (*Getopt) Usage

func (self *Getopt) Usage()

func (*Getopt) UsageString

func (self *Getopt) UsageString() string

type GetoptInterface

type GetoptInterface interface {
	StringLong(name *string, shortname *rune, required bool, description string) **string
	Usage()
	BoolLong(name *string, shortname *rune, description string) *bool
	NoOptionArgs() []string
	Parse([]string)
	ParseArgv()
	UInt64Long(name *string, shortname *rune, required bool, description string) **uint64
	CheckRequiredOptions() (bool, string, string)
}

Jump to

Keyboard shortcuts

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