blob: 862cffa4e099238d7607febf3f1077c450d9cbe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package main
import (
"flag"
"fmt"
)
const help = `Ceres - Recipe server for local networks
Usage: ceres [-h | --help] [-v | --version]
-h, --help show this help page and exit
-v, --version print version information
`
var printVersion bool
func init() {
flag.BoolVar(&printVersion, "version", false, "print version information")
flag.BoolVar(&printVersion, "v", false, "print version information")
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), help)
}
}
|