HBASE-16459 Remove unused hbase shell --format option

This commit is contained in:
Apekshit Sharma 2017-11-09 15:03:13 -08:00
parent 35a1e43348
commit 31234eb862
1 changed files with 1 additions and 16 deletions

View File

@ -54,10 +54,6 @@ $LOAD_PATH.unshift Pathname.new(sources)
cmdline_help = <<HERE # HERE document output as shell usage
Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
--format=OPTION Formatter for outputting results.
Valid options are: console, html.
(Default: console)
-d | --debug Set DEBUG log levels.
-h | --help This help.
-n | --noninteractive Do not run within an IRB session
@ -65,23 +61,12 @@ Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
first error.
HERE
found = []
format = 'console'
script2run = nil
log_level = org.apache.log4j.Level::ERROR
@shell_debug = false
interactive = true
for arg in ARGV
if arg =~ /^--format=(.+)/i
format = Regexp.last_match(1)
if format =~ /^html$/i
raise NoMethodError, 'Not yet implemented'
elsif format =~ /^console$/i
# This is default
else
raise ArgumentError, 'Unsupported format ' + arg
end
found.push(arg)
elsif arg == '-h' || arg == '--help'
if arg == '-h' || arg == '--help'
puts cmdline_help
exit
elsif arg == '-d' || arg == '--debug'