aboutsummaryrefslogtreecommitdiff
path: root/cmd/helpers.go
blob: 858cdfdd536ccfa14ea60f055caec1d81ea85b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package cmd

import (
	"os"
	"log"
	"flag"
)

var die = log.New(os.Stderr, "", 0)

func aliasedBoolVar(f * flag.FlagSet, p * bool, value bool, usage string) func(string) {
	
	return func(name string) {
		f.BoolVar(p, name, value, usage)
	}
}