Skip to content

Commit

Permalink
v1.3.4 c: 将启动参数改成短参形式
Browse files Browse the repository at this point in the history
  • Loading branch information
yzy613 committed Jun 9, 2021
1 parent 09a7762 commit a16286c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Install() (err error) {
"After=network.target\n\n" +
"[Service]\n" +
"Type=simple\n" +
"ExecStart=" + RunningPath + RunningName + " -conf_path " + ConfPath +
"ExecStart=" + RunningPath + RunningName + " -c " + ConfPath +
"\nRestart=on-failure\n" +
"RestartSec=2\n\n" +
"[Install]\n" +
Expand Down
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
LocalVersion = "1.3.3"
LocalVersion = "1.3.4"
DefaultAPIServer = "https://yzyweb.cn/ddns-watchdog"
ProjectUrl = "https://github.com/yzy613/ddns-watchdog"
)
Expand Down
10 changes: 5 additions & 5 deletions main-code/client/ddns-watchdog-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
)

var (
installOption = flag.Bool("install", false, "安装服务")
uninstallOption = flag.Bool("uninstall", false, "卸载服务")
installOption = flag.Bool("I", false, "安装服务")
uninstallOption = flag.Bool("u", false, "卸载服务")
enforcement = flag.Bool("f", false, "强制检查 DNS 解析记录")
version = flag.Bool("version", false, "查看当前版本并检查更新")
initOption = flag.String("init", "", "有选择地初始化配置文件,可以组合使用 (例 01)\n"+
version = flag.Bool("v", false, "查看当前版本并检查更新")
initOption = flag.String("i", "", "有选择地初始化配置文件,可以组合使用 (例 01)\n"+
"0 -> "+client.ConfFileName+"\n"+
"1 -> "+client.DNSPodConfFileName+"\n"+
"2 -> "+client.AliDNSConfFileName+"\n"+
"3 -> "+client.CloudflareConfFileName)
confPath = flag.String("conf_path", "", "指定配置文件路径 (最好是绝对路径)(路径有空格请放在双引号中间)")
confPath = flag.String("c", "", "指定配置文件路径 (最好是绝对路径)(路径有空格请放在双引号中间)")
conf = client.ClientConf{}
dpc = client.DNSPodConf{}
adc = client.AliDNSConf{}
Expand Down

0 comments on commit a16286c

Please sign in to comment.