{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/f74253f4a099258870157426b4cdb2dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f74253f4a099258870157426b4cdb2dc","url":"https://api.github.com/users/davetron5000","login":"davetron5000","id":22282},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-11T13:54:46Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/davetron5000/gli/issues/56","body":"For complex apps, it might be nice to allow:\r\n\r\n```Ruby\r\nc.command ListCommand\r\n\r\nclass ListCommand < Command\r\n  def initialize\r\n    super(:list,'Lists out all the stuff')\r\n    \r\n    desc 'Use long form'\r\n    switch :l,:long\r\n  end\r\nend\r\n```\r\n\r\nIn conjunction with #55, GLI could treat this class as the action method as well, looking for the method `execute` on `ListCommand`","html_url":"https://github.com/davetron5000/gli/issues/56","title":"Allow c.command to take an argument","number":56,"id":2209504,"created_at":"2011-11-11T13:54:46Z"},"action":"opened"}