diff --git a/README.md b/README.md index c285f0f..8620785 100644 --- a/README.md +++ b/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 diff --git a/lib/yawpa.rb b/lib/yawpa.rb index a1572c1..a060326 100644 --- a/lib/yawpa.rb +++ b/lib/yawpa.rb @@ -3,7 +3,7 @@ require "yawpa/version" # Example options configuration: # { # version: {}, -# verbose: {aliases: ['-v']}, +# verbose: {short: 'v'}, # get: {nargs: 1}, # set: {nargs: 2}, # }