update usage information / example configuration

This commit is contained in:
Josh Holtrop 2013-01-23 21:51:03 -05:00
parent 6ae8e62f7b
commit 96277b62d0
2 changed files with 12 additions and 2 deletions

View File

@ -24,7 +24,17 @@ Or install it yourself as:
## Usage
require 'yawpa'
require 'yawpa'
options = {
version: {},
verbose: {short: 'v'},
get: {nargs: 1},
set: {nargs: 2},
}
opts, args = Yawpa.parse(ARGV, options)
opts.each_pair do |opt, val|
end
## Contributing

View File

@ -3,7 +3,7 @@ require "yawpa/version"
# Example options configuration:
# {
# version: {},
# verbose: {aliases: ['-v']},
# verbose: {short: 'v'},
# get: {nargs: 1},
# set: {nargs: 2},
# }