diff --git a/basic/main.go b/basic/main.go index 95d517c..3188487 100644 --- a/basic/main.go +++ b/basic/main.go @@ -26,7 +26,10 @@ func (b *builder) Build(srcDir, dstDir string) { } func main() { - port := flag.Int("port", 8080, "server port") + var ( + dst = flag.String("dst", "dst", "destination directory") + port = flag.Int("port", 8080, "server port") + ) flag.Parse() - devserver.DevServe(new(builder), *port, "src", "dst", "layouts") + devserver.DevServe(new(builder), *port, "src", *dst, "layouts") } diff --git a/bootstrap/main.go b/bootstrap/main.go index 14f55c0..c942d8d 100644 --- a/bootstrap/main.go +++ b/bootstrap/main.go @@ -97,10 +97,10 @@ func (b *builder) Build(srcDir, dstDir string) { func main() { var ( + dst = flag.String("dst", "dst", "destination directory") root = flag.String("root", "", "root directory") port = flag.Int("port", 8080, "server port") ) flag.Parse() - - devserver.DevServe(&builder{*root}, *port, "src", "dst", "layouts") + devserver.DevServe(&builder{*root}, *port, "src", *dst, "layouts") }