diff options
| author | Jeff Carr <[email protected]> | 2024-01-15 19:00:41 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-15 19:00:41 -0600 |
| commit | 94aa368cff322e667156571638a45bd3117a2739 (patch) | |
| tree | 2fdeaf202d9a6f367306d790bc97b610e99c7cc0 /dnssecsocket/args.go | |
| parent | d0fe8be3709f170bdc2858708d6eaa6b7e4bf9de (diff) | |
garbage collect after cleaning to retain history
Diffstat (limited to 'dnssecsocket/args.go')
| -rw-r--r-- | dnssecsocket/args.go | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/dnssecsocket/args.go b/dnssecsocket/args.go deleted file mode 100644 index cbd9fe7..0000000 --- a/dnssecsocket/args.go +++ /dev/null @@ -1,44 +0,0 @@ -package dnssecsocket - -// -// By using the package "github.com/alexflint/go-arg", -// these can be configured from the command line -// - -import ( - // arg "github.com/alexflint/go-arg" - // "log" - // "os" -) - -type Args struct { - VerboseDnssec bool `arg:"--verbose-dnssec" help:"debug dnssec lookups"` - Foo string `arg:"env:USER"` -} - -var args struct { - Args - Verbose bool -} - -func Parse (b bool) { - args.Verbose = b - args.VerboseDnssec = b -} - -// I attempted to pass the *arg.Parser down -// to see if I could find the value somewhere but I couldn't find it -/* -var conf arg.Config - -func Parse (p *arg.Parser) { - // conf.Program = "control-panel-dns" - // conf.IgnoreEnv = false - // arg.NewParser(conf, &args) - log.Println("fuckit", p, args.VerboseDnssec) - for i, v := range p.SubcommandNames() { - log.Println("dnssec.Parse", i, v) - } - p.Jcarr() -} -*/ |
