Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 403 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 403 Bytes

multiflag

Little helper module for creating flags with multiple names (e.g. -r, -R & --recursive)

https://godoc.org/github.com/aporcupine/multiflag

Usage Example

import "github.com/aporcupine/multiflag"

var (
  recursive = multiflag.Bool(false, "remove recursively", "r", "R", "recursive")
  config = multiflag.String("/etc/myconfig", "location of config file", "c", "config")
)