Skip to content

Cannot print dictionary items? #34

Open
@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions