Skip to content

Instantly share code, notes, and snippets.

@dyoder
Created May 27, 2010 21:38
Show Gist options
  • Save dyoder/416390 to your computer and use it in GitHub Desktop.
Save dyoder/416390 to your computer and use it in GitHub Desktop.
Choice.options do
header 'Run a waves application server.'
header ''
option :port do
short '-p'
long '--port=PORT'
desc 'Port to listen on.'
desc 'Defaults to value given in configuration.'
cast Integer
end
separator ''
option :host do
short '-h'
long '--host=HOST'
desc 'Host or IP address of the host to bind.'
desc 'Defaults to value given in configuration.'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment