update usage information / example configuration
This commit is contained in:
parent
6ae8e62f7b
commit
96277b62d0
12
README.md
12
README.md
@ -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
|
||||
|
||||
|
@ -3,7 +3,7 @@ require "yawpa/version"
|
||||
# Example options configuration:
|
||||
# {
|
||||
# version: {},
|
||||
# verbose: {aliases: ['-v']},
|
||||
# verbose: {short: 'v'},
|
||||
# get: {nargs: 1},
|
||||
# set: {nargs: 2},
|
||||
# }
|
||||
|
Loading…
x
Reference in New Issue
Block a user