forked from palantir/godel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
29 lines (23 loc) · 820 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2016 Palantir Technologies, Inc. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root
// for license information.
package amalgomated
import (
"github.com/palantir/godel/apps/okgo/generated_src/internal/github.com/palantir/checks/outparamcheck/amalgomated_flag"
"fmt"
"os"
"runtime"
"github.com/palantir/godel/apps/okgo/generated_src/internal/github.com/palantir/checks/outparamcheck/outparamcheck"
)
func AmalgomatedMain() {
runtime.GOMAXPROCS(runtime.NumCPU())
cfgPath := ""
fset := flag.CommandLine
fset.StringVar(&cfgPath, "config", "", "JSON configuration or '@' followed by path to a configuration file (@pathToJsonFile)")
flag.Parse()
err := outparamcheck.Run(cfgPath, flag.Args())
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}