flagparser

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableParsing = false

DisableParsing disables parsing when running unit tests, as parsing is called in the test's init() function, which results in an error

Functions

This section is empty.

Types

type MainFlags

type MainFlags struct {
	ShowVersion      bool
	Reconfigure      bool
	CreateSsl        bool
	ConfigPath       string
	ConfigDir        string
	DataDir          string
	Port             int
	IsConfigPathSet  bool
	IsConfigDirSet   bool
	IsDataDirSet     bool
	IsPortSet        bool
	DisableCorsCheck bool
}

MainFlags holds info for the parsed program arguments

func ParseFlags

func ParseFlags() MainFlags

ParseFlags reads the passed program arguments

Jump to

Keyboard shortcuts

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