deprecatedflags

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package deprecatedflags can be used to declare a flag that is no longer supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string) bool

Add defines a deprecated option which used to take some kind of value. The type of the argument no longer matters, it gets ignored and instead using the option triggers a deprecation warning. The return code can be safely ignored and is only provided to support replacing functions like flag.Int in a global variable section.

func AddBool

func AddBool(name string) bool

AddBool defines a deprecated boolean option. Otherwise it behaves like Add.

Types

This section is empty.

Jump to

Keyboard shortcuts

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