Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2015 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/951ceb1d88fe9ab89fdd to your computer and use it in GitHub Desktop.
Save anonymous/951ceb1d88fe9ab89fdd to your computer and use it in GitHub Desktop.
def main()
options = {}
opt_parser = OptionParser.new do
|opts|
opts.on('-f', '--files', 'Files list, "-" for standard input') { |files| options[:files] = files}
end
opt_parser.parse # parse options
print options, "\n" # print options
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment