Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In both tools, if "-h" is specified as the only option, it throws error as input and output not specified.
master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs oev -h Error parsing command-line options: Missing required options: o, i Usage: bin/hdfs oev [OPTIONS] -i INPUT_FILE -o OUTPUT_FILE
In code the parsing is happening before the "-h" option is verified
Can add code to return after initial check.
if (argv.length == 1 && argv[1] == "-h") { printHelp(); return 0; }