Skip to content

Commit 8c5fa0f

Browse files
committed
Fix ruby_h_to_go
1 parent c5a5bad commit 8c5fa0f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

_tools/ruby_h_to_go/exe/ruby_h_to_go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
# Convert Ruby C function definition to Go source and dump to dist/
5-
#
6-
# Usage:
7-
# ./ruby_h_to_go -H path/to/ruby/header/dir
8-
94
require "optparse"
105
require "fileutils"
116
require "tmpdir"
@@ -36,12 +31,12 @@ opt.on("-I", "--include-path path1,path2", Array, "include paths (default: #{DEF
3631
include_paths = v
3732
end
3833

39-
opt.on("-D", "--dist-dir DIST_DIR", "dist dir for auto-generated Go code (default: #{DEFAULT_DIST_DIR})") do |v|
34+
opt.on("-t", "--dist-dir DIST_DIR", "dist dir for auto-generated Go code (default: #{DEFAULT_DIST_DIR})") do |v|
4035
dist_dir = v
4136
end
4237

43-
opt.on("-p", "--dist-dir DIST_DIR",
44-
"dist preprocessed ruby header file (default: #{DEFAULT_DIST_PREPROCESSED_HEADER_FILE})") do |v|
38+
opt.on("-t", "--temp-file TEMP_FILE",
39+
"temporary dist preprocessed ruby header file (default: #{DEFAULT_DIST_PREPROCESSED_HEADER_FILE})") do |v|
4540
dist_preprocessed_header_file = v
4641
end
4742

0 commit comments

Comments
 (0)