simpleserver/cmd/simpleserver.go

16 lines
209 B
Go

package main
import (
"fmt"
"git.gutmet.org/simpleserver.git"
"os"
)
func main() {
if len(os.Args) != 2 {
fmt.Println("Usage: " + os.Args[0] + " DIR")
os.Exit(1)
}
simpleserver.Serve(os.Args[1])
}