{"issue":{"created_at":"2011-11-30T17:19:18Z","state":"closed","updated_at":"2011-11-30T17:27:51Z","comments":1,"user":{"gravatar_id":"2dd2af57b38ef6b14bd8d913411d4047","id":479143,"url":"https://api.github.com/users/epinault-ttc","avatar_url":"https://secure.gravatar.com/avatar/2dd2af57b38ef6b14bd8d913411d4047?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"epinault-ttc"},"body":"I am trying the example\r\n\r\n<pre>\r\nrequire 'slop'\r\n\r\nopts = Slop.new do\r\n  command :clean do\r\n    on :v, :verbose, do\r\n      puts 'Enabled verbose mode for clean'\r\n    end\r\n  end\r\n\r\n  # non-command specific options\r\n  on :v, :version do\r\n    puts 'version 1'\r\n  end\r\nend\r\n\r\nputs opts.to_hash\r\n</pre>\r\n\r\nand I see nothing being outputted\r\n\r\n<pre>\r\n~$ ruby slop.rb \r\n{:version=>nil}\r\n~$ ruby slop.rb -v\r\n{:version=>nil}\r\n~$ ruby slop.rb clean -v\r\n{:version=>nil}\r\n~s$ ruby slop.rb clean -v\r\n{:version=>nil}\r\n</pre>\r\n\r\n\r\nI am using ruby 1.9.2 on Ubuntu 10.04","assignee":null,"id":2404535,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":38,"title":"2.4.0 command not working","closed_at":"2011-11-30T17:27:51Z","html_url":"https://github.com/injekt/slop/issues/38","url":"https://api.github.com/repos/injekt/slop/issues/38","milestone":null},"action":"closed"}