exe/qwik2md in qwik2md-2.0.0 vs exe/qwik2md in qwik2md-2.0.1
- old
+ new
@@ -18,8 +18,8 @@
opts.on("-bBASE", "--base=BASE", "Base path for files (ex. `-b path/to/base` will convert `{{file(a.jpg)}}` to `path/to/base.files/a.jpg`)") do |b|
options[:base] = b
end
}.parse!
-file = Pathname.new(ARGV[0])
+file = Pathname.new(ARGV[0].to_s)
base = options.fetch(:base, file.dirname.join(file.basename('.*')))
puts Qwik2md.convert(ARGF.read, base: base)