cmd

package
v0.0.0-...-ef73a9a Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogLevelFlag = cli.UintFlag{
		Name:  "loglevel",
		Usage: "Set the log level to `<level>` (0~6). 0:Trace 1:Debug 2:Info 3:Warn 4:Error 5:Fatal 6:MaxLevel",
		Value: config.DEFAULT_LOG_LEVEL,
	}

	ConfigPathFlag = cli.StringFlag{
		Name:  "cliconfig",
		Usage: "Server config file `<path>`",
		Value: config.DEFAULT_CONFIG_FILE_NAME,
	}

	EthStartFlag = cli.Uint64Flag{
		Name:  "ethereum",
		Usage: "eth start block height ",
		Value: uint64(0),
	}

	EthStartForceFlag = cli.Uint64Flag{
		Name:  "ethereumforce",
		Usage: "eth start block height ",
		Value: uint64(0),
	}

	MCStartFlag = cli.Uint64Flag{
		Name:  "alliance",
		Usage: "multichain start block height ",
		Value: uint64(0),
	}
)

Functions

func GetFlagName

func GetFlagName(flag cli.Flag) string

GetFlagName deal with short flag, and return the flag name whether flag name have short name

Types

This section is empty.

Jump to

Keyboard shortcuts

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