add ddns file
This commit is contained in:
@@ -6,6 +6,7 @@ import "flag"
|
||||
type Options struct {
|
||||
Help bool
|
||||
Config string
|
||||
Once bool
|
||||
}
|
||||
|
||||
var opts *Options
|
||||
@@ -16,6 +17,7 @@ func RegOptions() {
|
||||
flag.StringVar(&opts.Config, "config", "", "config file path - default: `pwd/config.yml`")
|
||||
flag.StringVar(&opts.Config, "f", "", "config file path - default: `pwd/config.yml`")
|
||||
flag.BoolVar(&opts.Help, "help", false, "show help")
|
||||
flag.BoolVar(&opts.Once, "once", false, "run once")
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user