We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12d2681 commit 3c0c2a3Copy full SHA for 3c0c2a3
language/go/extractor/src/cli/helper.go
@@ -24,6 +24,10 @@ func parseExtractorRunningParams(args []string) *extractionConf {
24
usage()
25
os.Exit(2)
26
}
27
+ if args[1] == "-h" || args[1] == "--help" {
28
+ usage()
29
+ os.Exit(0)
30
+ }
31
32
configArgs := strings.Split(strings.Join(args[1:], " "), " ")
33
srcPath, err := filepath.Abs(configArgs[len(configArgs)-1])
@@ -42,9 +46,6 @@ func parseExtractorRunningParams(args []string) *extractionConf {
42
46
for i := 0; i < len(configArgs)-1 && strings.HasPrefix(configArgs[i], "-"); i++ {
43
47
arg := configArgs[i]
44
48
switch arg {
45
- case "-h", "--help":
- usage()
- os.Exit(0)
49
case "-exconfig", "-ex":
50
handleExtractionArg(configArgs, &i, extractionConfig)
51
case "-o", "-output", "-dbpath":
0 commit comments