Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 f1e97d38b -> c4e3ad078


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/c4e3ad07
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c4e3ad07
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c4e3ad07

Branch: refs/heads/branch-1.1
Commit: c4e3ad07898b42bf97d560ca1d2213276a4b9f9e
Parents: f1e97d3
Author: Apekshit Sharma <[email protected]>
Authored: Thu Nov 9 15:03:13 2017 -0800
Committer: Apekshit Sharma <[email protected]>
Committed: Fri Nov 10 09:55:11 2017 -0800

----------------------------------------------------------------------
 bin/hirb.rb | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c4e3ad07/bin/hirb.rb
----------------------------------------------------------------------
diff --git a/bin/hirb.rb b/bin/hirb.rb
index 0503c29..03e9af3 100644
--- a/bin/hirb.rb
+++ b/bin/hirb.rb
@@ -48,30 +48,15 @@ $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.
 HERE
 found = []
-format = 'console'
 script2run = nil
 log_level = org.apache.log4j.Level::ERROR
 @shell_debug = false
 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'

Reply via email to