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 {
2424 usage ()
2525 os .Exit (2 )
2626 }
27+ if args [1 ] == "-h" || args [1 ] == "--help" {
28+ usage ()
29+ os .Exit (0 )
30+ }
2731
2832 configArgs := strings .Split (strings .Join (args [1 :], " " ), " " )
2933 srcPath , err := filepath .Abs (configArgs [len (configArgs )- 1 ])
@@ -42,9 +46,6 @@ func parseExtractorRunningParams(args []string) *extractionConf {
4246 for i := 0 ; i < len (configArgs )- 1 && strings .HasPrefix (configArgs [i ], "-" ); i ++ {
4347 arg := configArgs [i ]
4448 switch arg {
45- case "-h" , "--help" :
46- usage ()
47- os .Exit (0 )
4849 case "-exconfig" , "-ex" :
4950 handleExtractionArg (configArgs , & i , extractionConfig )
5051 case "-o" , "-output" , "-dbpath" :
You can’t perform that action at this time.
0 commit comments