Skip to content

Cannot print dictionary items? #34

@Behinder

Description

@Behinder

This is my simple code:
#encoding: UTF-8
#!/usr/bin/env ruby
require "net/http"
require "docopt"
require "uri"

doc=<<DOCOPT

Usage:
screengrab (application_id) [-c=(us|pl|de|gb|au)]
screengrab -h|--help
screengrab --version

Options:
-h|--help Show this help
--version Show version
-c=(us|pl|de|gb|au) Lookup in specific Store.

DOCOPT

begin
require "pp"
options = Docopt::docopt(doc,version:"1.0")
pp options
rescue Docopt::Exit => e
puts e.message
exit 1
end

no matter what I do, command pp options do not produce any dictionary on screen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions