flags

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

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.

func LogLevel added in v0.2.2

func LogLevel() string

Return the requested log level

Types

This section is empty.

Jump to

Keyboard shortcuts

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