diff options
-rw-r--r-- | internal/ctflag/ctflag.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/ctflag/ctflag.go b/internal/ctflag/ctflag.go index c6a7559..1309afd 100644 --- a/internal/ctflag/ctflag.go +++ b/internal/ctflag/ctflag.go @@ -71,6 +71,12 @@ func String(fs *flag.FlagSet, opt *string, short, long, value string) { fs.StringVar(opt, long, value, "") } +// Uint64 adds a new uint64 option to a flag set +func Uint64(fs *flag.FlagSet, opt *uint64, short, long string, value uint64) { + fs.Uint64Var(opt, short, value, "") + fs.Uint64Var(opt, long, value, "") +} + // Bool adds a new bool option to a flag set func Bool(fs *flag.FlagSet, opt *bool, short, long string, value bool) { fs.BoolVar(opt, short, value, "") |