HBASE-16459 Remove unused hbase shell --format option
This commit is contained in:
parent
35a1e43348
commit
31234eb862
17
bin/hirb.rb
17
bin/hirb.rb
|
@ -54,10 +54,6 @@ $LOAD_PATH.unshift Pathname.new(sources)
|
||||||
cmdline_help = <<HERE # HERE document output as shell usage
|
cmdline_help = <<HERE # HERE document output as shell usage
|
||||||
Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
|
Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
|
||||||
|
|
||||||
--format=OPTION Formatter for outputting results.
|
|
||||||
Valid options are: console, html.
|
|
||||||
(Default: console)
|
|
||||||
|
|
||||||
-d | --debug Set DEBUG log levels.
|
-d | --debug Set DEBUG log levels.
|
||||||
-h | --help This help.
|
-h | --help This help.
|
||||||
-n | --noninteractive Do not run within an IRB session
|
-n | --noninteractive Do not run within an IRB session
|
||||||
|
@ -65,23 +61,12 @@ Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
|
||||||
first error.
|
first error.
|
||||||
HERE
|
HERE
|
||||||
found = []
|
found = []
|
||||||
format = 'console'
|
|
||||||
script2run = nil
|
script2run = nil
|
||||||
log_level = org.apache.log4j.Level::ERROR
|
log_level = org.apache.log4j.Level::ERROR
|
||||||
@shell_debug = false
|
@shell_debug = false
|
||||||
interactive = true
|
interactive = true
|
||||||
for arg in ARGV
|
for arg in ARGV
|
||||||
if arg =~ /^--format=(.+)/i
|
if arg == '-h' || arg == '--help'
|
||||||
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'
|
|
||||||
puts cmdline_help
|
puts cmdline_help
|
||||||
exit
|
exit
|
||||||
elsif arg == '-d' || arg == '--debug'
|
elsif arg == '-d' || arg == '--debug'
|
||||||
|
|
Loading…
Reference in New Issue