Skip to content

shellucas/go-commander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages