Repository: hbase Updated Branches: refs/heads/branch-1.4 6650a3ef8 -> 999cd0c3e
HBASE-16459 Remove unused hbase shell --format option Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/999cd0c3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/999cd0c3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/999cd0c3 Branch: refs/heads/branch-1.4 Commit: 999cd0c3e8633312115fd568e2cdef0ff83e3f96 Parents: 6650a3e Author: Apekshit Sharma <[email protected]> Authored: Thu Nov 9 15:03:13 2017 -0800 Committer: Apekshit Sharma <[email protected]> Committed: Fri Nov 10 09:54:00 2017 -0800 ---------------------------------------------------------------------- bin/hirb.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/999cd0c3/bin/hirb.rb ---------------------------------------------------------------------- diff --git a/bin/hirb.rb b/bin/hirb.rb index 2726e48..52343ca 100644 --- a/bin/hirb.rb +++ b/bin/hirb.rb @@ -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 = $1 - if format =~ /^html$/i - raise NoMethodError.new("Not yet implemented") - elsif format =~ /^console$/i - # This is default - else - raise ArgumentError.new("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'
