flags

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func InfoEnabled() bool

InfoEnabled returns true if the info flag has been invoked on the command line, otherwise false.

func LogLevel

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