Skip to content

Commit ecbf052

Browse files
author
olevole
committed
cleanup
1 parent b9b69e4 commit ecbf052

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

main.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ var (
1616
cbsdEnv = flag.String("cbsdenv", "/usr/jails", "CBSD workdir environment")
1717
)
1818

19-
func usage() {
20-
_, err := fmt.Fprintf(os.Stderr, "usage: %s [-config config.json] [-cbsdenv CBSD workdir]\n", os.Args[0])
21-
if err != nil {
22-
panic(err)
23-
}
24-
flag.PrintDefaults()
25-
os.Exit(2)
26-
}
27-
2819
func check_cbsd_env (cbsdenv string) bool {
2920

3021
name := fmt.Sprintf("%s/nc.inventory",cbsdenv)
@@ -40,7 +31,6 @@ func check_cbsd_env (cbsdenv string) bool {
4031
}
4132

4233
func main() {
43-
flag.Usage = usage
4434
flag.Parse()
4535

4636
config, err := LoadConfiguration(*configFile)

0 commit comments

Comments
 (0)