add ddns file

This commit is contained in:
Jay
2019-05-08 22:44:28 +08:00
parent f828db0a38
commit e6f22deb49
4 changed files with 41 additions and 6 deletions
+2
View File
@@ -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()
}