Skip to content

Instantly share code, notes, and snippets.

@kevinkirkup
Created September 8, 2012 11:32
Show Gist options
  • Save kevinkirkup/3673925 to your computer and use it in GitHub Desktop.
Save kevinkirkup/3673925 to your computer and use it in GitHub Desktop.
Rubyx Choice parameter block
require 'choice'
# Choice Block for argument definition
Choice.options do
header 'Application options:'
option :template, :required => true do
short '-t'
long '--template=TEMPLATE'
desc 'The path to the preset settings template'
end
end
# Create the template
template = Choice.choices.template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment