Add cli arg for domain

This commit is contained in:
2024-04-07 11:32:38 +02:00
parent b88fb1643c
commit 5615210be5
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
type CliArgs struct {
DBName string
Domain string
KeyFile string
LogFile string
Port string
@ -21,6 +22,7 @@ func HandleCliArgs() (*CliArgs, error) {
cliArgs := new(CliArgs)
flag.StringVar(&cliArgs.DBName, "db", "cpolis", "DB name")
flag.StringVar(&cliArgs.Domain, "domain", "", "domain name")
keyFile := flag.String("key", "/var/www/cpolis/cpolis.key", "key file")
logFile := flag.String("log", "/var/log/cpolis.log", "log file")
flag.StringVar(&cliArgs.PicsDir, "pics", "pics", "pictures directory")