Documentation ¶
Overview ¶
Package flags provides helper functions for accessing command line flags.
It also serves as a central point for creating new flags and providing helpers for interacting with the available information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugEnabled ¶
func DebugEnabled() bool
DebugEnabled returns true if the debug flag has been invoked on the command line, otherwise false.
func GetLineOptionsGroups ¶
func GetLineOptionsGroups() []swag.CommandLineOptionsGroup
GetLineOptionsGroups returns the CommandLineOptionsGroup structure that can be used to configure the command line flags for the rest server.
func GetLogFile ¶
func GetLogFile() string
GetLogFile returns the log filename specified on the command line or an empty string in the case that no file is specified.
func InfoEnabled ¶ added in v0.2.6
func InfoEnabled() bool
InfoEnabled returns true if the info flag has been invoked on the command line, otherwise false.
Types ¶
This section is empty.