flags

package
v0.1.83 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SilentMissingConfig controls whether a warning message is printed
	// when the specified configuration file is missing.
	SilentMissingConfig bool
)

Functions

func Parse

func Parse() error

Parse parses command-line flags and optionally merges them with values read from the configuration file specified via SetConfigFile. If a configuration file is provided, its flags are prepended to os.Args. Errors during parsing or reading are handled according to the flag package’s ErrorHandling setting.

func SetConfigFile

func SetConfigFile(path string)

SetConfigFile sets the path of the configuration file to be used when parsing flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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