Skip to content

Commit

Permalink
Merge pull request #19 from imlonghao/fix-verify-nostdin
Browse files Browse the repository at this point in the history
验证模式判断标准输入是否有数据
  • Loading branch information
boy-hack authored Sep 7, 2020
2 parents 24445ee + ff7fa27 commit 4c3c37d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func ParseOptions() *Options {
if options.FileName != "" && !FileExists(options.FileName) {
gologger.Fatalf("文件:%s 不存在!\n", options.FileName)
}
if !options.Stdin && options.Verify && options.FileName == "" {
gologger.Fatalf("启用了 -verify 参数但传入域名为空!")
}
return options
}
func hasStdin() bool {
Expand Down

0 comments on commit 4c3c37d

Please sign in to comment.