Kouhei Sutou
null+****@clear*****
Mon Dec 16 16:21:04 JST 2013
Kouhei Sutou 2013-12-16 16:21:04 +0900 (Mon, 16 Dec 2013) New Revision: c84b4e528187a32d457e3798ebdfc2fe90e3b3ac https://github.com/groonga/groonga-query-log/commit/c84b4e528187a32d457e3798ebdfc2fe90e3b3ac Message: Use $stdin for the default Because ARGF is broken when one or more options are specified. The code doesn't change ARGV destructively. So ARGF handles parsed options as input file name too. Modified files: lib/groonga/query-log/extractor.rb Modified: lib/groonga/query-log/extractor.rb (+1 -1) =================================================================== --- lib/groonga/query-log/extractor.rb 2013-12-06 18:47:26 +0900 (e470725) +++ lib/groonga/query-log/extractor.rb 2013-12-16 16:21:04 +0900 (96b411a) @@ -69,7 +69,7 @@ module Groonga unless log_via_stdin? raise(NoInputError, "Error: Please specify input log files.") end - log = ARGF + log = $stdin else log = log_paths end -------------- next part -------------- HTML����������������������������...Download