go-sh-manymanuals/go-sh-manymanuals.go

35 lines
355 B
Go
Raw Normal View History

2022-04-20 12:40:46 +02:00
package main
import (
2022-06-22 19:42:00 +02:00
"flag"
2022-04-20 12:40:46 +02:00
"fmt"
2022-06-22 19:42:00 +02:00
"os"
2022-04-20 12:40:46 +02:00
)
2022-06-22 19:42:00 +02:00
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()
}
2022-04-20 12:40:46 +02:00
func main() {
2022-06-22 19:42:00 +02:00
handleCliFlags()
if helpFlag {
fmt.Printf(help)
os.Exit(0)
}
fmt.Printf("???")
2022-04-20 12:40:46 +02:00
}