fix: Correct flag parsing
This commit is contained in:
parent
3213366262
commit
e4813daf4d
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -32,6 +32,7 @@ var domainFlag = flag.String("domain", "http://localhost:8085", "base domain")
|
||||||
var bindFlag = flag.String("bind", ":8085", "host and port to bind")
|
var bindFlag = flag.String("bind", ":8085", "host and port to bind")
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
flag.Parse()
|
||||||
h := &Handler{
|
h := &Handler{
|
||||||
DataDir: *dataDirFlag,
|
DataDir: *dataDirFlag,
|
||||||
Domain: *domainFlag,
|
Domain: *domainFlag,
|
||||||
|
|
Loading…
Reference in a new issue