You are viewing a single comment's thread from:

RE: How to Find Hidden Gems with Ruby

in #radiator7 years ago

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.

Sort:  

Got that, makes sense now.
Will try it at home. You received a quest reward via memo ;)

Edit: WORKED!