Repository: hbase Updated Branches: refs/heads/branch-1.3 96cad7314 -> d4acc9b68
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/d4acc9b6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d4acc9b6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d4acc9b6 Branch: refs/heads/branch-1.3 Commit: d4acc9b686c901f4b67a9b14966559ac12ab9f79 Parents: 96cad73 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:40 2017 -0800 ---------------------------------------------------------------------- bin/hirb.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/d4acc9b6/bin/hirb.rb ---------------------------------------------------------------------- diff --git a/bin/hirb.rb b/bin/hirb.rb index 94b5cdb..470b093 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'
