{"issue":{"created_at":"2011-12-01T17:12:44Z","state":"open","updated_at":"2011-12-01T17:12:44Z","comments":0,"user":{"gravatar_id":"1d7990e4c4ffe134bfcd2cc834bf21a9","id":117819,"url":"https://api.github.com/users/bjoernalbers","login":"bjoernalbers","avatar_url":"https://secure.gravatar.com/avatar/1d7990e4c4ffe134bfcd2cc834bf21a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm trying to define a class argument with an array type, which [should work](http://rubydoc.info/github/wycats/thor/master/Thor/Base/ClassMethods#argument-instance_method):\r\n\r\n```ruby\r\nclass Foo < Thor\r\n  \r\n  argument :baz, :desc => \"an array argument\", :type => :array\r\n  \r\n  desc \"bar\", \"...just a task\"\r\n  def bar\r\n    puts self.baz.inspect\r\n  end\r\nend\r\n```\r\n\r\nHowever, running the task with actual array options raises an usage error:\r\n\r\n```\r\n$ thor -T\r\nfoo\r\n---\r\nthor foo:bar one two three  # ...just a task\r\n$ thor foo:bar one two three\r\n\"bar\" was called incorrectly. Call as \"thor foo:bar one two three\".\r\n```\r\n\r\nWhen I run it with only one argument, then it works:\r\n\r\n```\r\n$ thor foo:bar \"one two three\"\r\n[\"one two three\"]\r\n```\r\nI've tested on Ruby 1.8.7 and 1.9.2 with thor 0.14.6.","assignee":null,"id":2417167,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":203,"title":"Usage error when called with array argument","html_url":"https://github.com/wycats/thor/issues/203","closed_at":null,"url":"https://api.github.com/repos/wycats/thor/issues/203","milestone":null},"action":"opened"}