fix: commands flags not being parsed
This commit is contained in:
@@ -13,6 +13,8 @@ func main() {
|
||||
dir := flag.String("d", "./dist", "the directory to write the files")
|
||||
staticDir := flag.String("s", "./static", "the directory to copy static files from")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
w := internals.StaticWriter{
|
||||
DistDir: dir,
|
||||
StaticDir: staticDir,
|
||||
|
||||
@@ -24,6 +24,8 @@ func main() {
|
||||
staticDir := flag.String("s", "./static", "the directory to copy static files from")
|
||||
port := flag.Int("p", 8080, "the port to run the server")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
configFile, err := os.ReadFile(*configPath)
|
||||
if err != nil {
|
||||
logger.Fatalf("Unable to read vercel.json file due to:\n%s", err)
|
||||
|
||||
Reference in New Issue
Block a user