Skip to content

Instantly share code, notes, and snippets.

@bnagy
Created August 28, 2012 04:17
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 bnagy/3494934 to your computer and use it in GitHub Desktop.
Save bnagy/3494934 to your computer and use it in GitHub Desktop.
OPTS=Trollop::options do
opt :config, "Config filename", :type => :string
opt :keep, "Don't overwrite existing trace results", :type=>:boolean
opt :pi, "Calculate Pi (requires md5sum filenames)", :type=>:boolean
opt :strict, "Only send files with the configured extension", :type=>:boolean
opt :debug, "Enable debug output", :type=>:boolean
end
CONFIG=YAML.load_file( OPTS[:config] ) unless defined? CONFIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment