Skip to content

Commit 2bdced7

Browse files
committed
Make it clear we expect a path as first argument to preprocess.rb
1 parent 2f8f3cc commit 2bdced7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cext/preprocess.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.patch(file, contents, directory)
6161
if __FILE__ == $0
6262
require 'stringio'
6363

64-
file_name = ARGF.filename
64+
file_name = ARGV.first
6565
original_content = File.read(file_name)
6666
output = patch(file_name, original_content, Dir.pwd)
6767

0 commit comments

Comments
 (0)