Skip to content

Commit

Permalink
add -f notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Ro0tk1t committed Jan 27, 2021
1 parent be48460 commit b90d7d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ func ParseOptions() *Options {
if len(options.Domain) > 0 && options.Verify {
gologger.Fatalf("-d 与 -verify参数不可以同时出现!")
}
if options.FileName != "" && !FileExists(options.FileName) {
gologger.Fatalf("文件:%s 不存在!\n", options.FileName)
if options.FileName != "" {
if !FileExists(options.FileName) {
gologger.Fatalf("文件:%s 不存在!\n", options.FileName)
} else if !options.Verify {
gologger.Fatalf("-f需配合-d或-verify使用!\n", )
}
}
if !options.Stdin && options.Verify && options.FileName == "" {
gologger.Fatalf("启用了 -verify 参数但传入域名为空!")
Expand Down

0 comments on commit b90d7d2

Please sign in to comment.