flags

package
v0.0.0-...-fc6b28f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	LogFile    flags.Filename `long:"logfile" short:"l" description:"Filename of log file"`
	ConfigFile flags.Filename `long:"config" short:"c" description:"Filename of configuration json file (default: config.json)"`
	Debug      bool           `long:"debug" short:"d" description:"Debug flug. If given, server runs in debug mode"`
}

*

  • @class Options
  • @brief Collect all environment variables and command-line arguments

func New

func New() *Options

*

  • @brief Parse command-line and environment arguments, validate it and return
  • @return opts Pointer to filled Options object

Jump to

Keyboard shortcuts

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