소스 검색

fix flags for env

Hal De 3 년 전
부모
커밋
eff7e8e53c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main.go

+ 2 - 2
main.go

@@ -169,8 +169,8 @@ func readHandler(filename string, rf io.ReaderFrom) error {
 //Declaring cli flags
 func init() {
   flag.StringVar(&workdir, "workdir", "/tftpboot", "Set working directory")
-  flag.StringVar(&sepTeplateFilePath, "sep-template-file", "./sep-cisco.cnf.xml.tpl", "Set path to sep template file")
-  flag.StringVar(&freepbxConf, "freepbx-conf", "/etc/freepbx.conf", "Set path to freepbx db connection config file")
+  flag.StringVar(&sepTeplateFilePath, "sep_template_file", "./sep-cisco.cnf.xml.tpl", "Set path to sep template file")
+  flag.StringVar(&freepbxConf, "freepbx_conf", "/etc/freepbx.conf", "Set path to freepbx db connection config file")
 }
 
 func main() {