You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
355 B
34 lines
355 B
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("???")
|
|
}
|
|
|