arg

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolArg

func BoolArg(arg string, defaultValue bool) bool

func StringArg

func StringArg(arg string, defaultValue string) string

Types

type Args

type Args struct {
	Help     bool
	Verbose  bool
	UseStdin bool
	CfgFile  string
}

func ParseArgs

func ParseArgs(args []string, defaultCfgFile string, swflags map[string]bool) (*Args, []string)

Jump to

Keyboard shortcuts

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