go-commander

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT

README

go-commander

Types of flags

Switch

A switch is a flag that can only be a boolean. If the switch is defined, the boolean will be set to true.

Example:
go run main.go --logging

In this example 3 forms of a switch are shown. The short version, the long version and the value version.

Value flag

Example:
go run main.go -c dev --debugmessage=hello

In this example the short and long verson are shown of the flag.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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