go-sh-manymanuals/go-sh-manymanuals.go
2022-06-25 13:58:28 +02:00

35 lines
355 B
Go

package main
import (
"flag"
"fmt"
"os"
)
const help = `go-sh-manymanuals: ???
???
Options:
-h output help
`
var portFlag int
var helpFlag bool
func handleCliFlags() {
flag.BoolVar(&helpFlag, "h", false, "output help")
flag.Parse()
}
func main() {
handleCliFlags()
if helpFlag {
fmt.Printf(help)
os.Exit(0)
}
fmt.Printf("???")
}