My demo.rb:
puts ARGV.size ARGV.each do |a| puts \"Argument: #{a}\" end
The result depends on how we run a script:
>
You can use a freeware tool from Nirsoft - FileTypesManager - to add the missing %* as mentioned in the other posts.
%*