There's a typo too. It should be:
options[:tag] = ARGV.first if ARGV.any?
The ARGV
constant is created by the ruby interpreter and just gives you access to the parameters passed when you launch. So, once you apply that fix, this command will work:
ruby vote_ready.rb dmania
And that will narrow down the query to the dmania
tag.
Got that, makes sense now.
Will try it at home. You received a quest reward via memo ;)
Edit: WORKED!