File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ func parseExtractorRunningParams(args []string) *extractionConf {
24
24
usage ()
25
25
os .Exit (2 )
26
26
}
27
+ if args [1 ] == "-h" || args [1 ] == "--help" {
28
+ usage ()
29
+ os .Exit (0 )
30
+ }
27
31
28
32
configArgs := strings .Split (strings .Join (args [1 :], " " ), " " )
29
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" :
46
- usage ()
47
- os .Exit (0 )
48
49
case "-exconfig" , "-ex" :
49
50
handleExtractionArg (configArgs , & i , extractionConfig )
50
51
case "-o" , "-output" , "-dbpath" :
You can’t perform that action at this time.
0 commit comments