From fe4f2c413996fbcbfecce1e138cffa8a612dfceb Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Fri, 17 Mar 2023 14:35:01 +0100 Subject: Add uint64 to ctflag --- internal/ctflag/ctflag.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/ctflag') 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, "") -- cgit v1.2.3