Guest User

Untitled

a guest
Dec 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. OPTS=Trollop::options do
  2. opt :config, "Config filename", :type => :string
  3. opt :keep, "Don't overwrite existing trace results", :type=>:boolean
  4. opt :pi, "Calculate Pi (requires md5sum filenames)", :type=>:boolean
  5. opt :strict, "Only send files with the configured extension", :type=>:boolean
  6. opt :debug, "Enable debug output", :type=>:boolean
  7. end
  8.  
  9. CONFIG=YAML.load_file( OPTS[:config] ) unless defined? CONFIG
Add Comment
Please, Sign In to add comment