forked from varia/go-sh-manymanuals
35 lines
355 B
Go
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("???")
|
|
}
|