params

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package params provides implementation of Go API for argument parser

Package params provides implementation of Go API for argument parser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *parser

Types

type Data

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

func (*Data) ConfigFilePath

func (d *Data) ConfigFilePath() string

func (*Data) ShowVersion

func (d *Data) ShowVersion() bool

type Option

type Option func(*parser)

func WithConfigFileDescription

func WithConfigFileDescription(desc string) Option

func WithConfigFilePathDefault

func WithConfigFilePathDefault(path string) Option

func WithConfigFilePathKeys

func WithConfigFilePathKeys(keys ...string) Option

func WithVersionDescription

func WithVersionDescription(desc string) Option

func WithVersionFlagDefault

func WithVersionFlagDefault(flag bool) Option

func WithVersionKeys

func WithVersionKeys(keys ...string) Option

Jump to

Keyboard shortcuts

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