Last active
December 31, 2015 05:19
-
-
Save postmodern/7939687 to your computer and use it in GitHub Desktop.
Revisions
-
postmodern revised this gist
Dec 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ require 'optparse' options = OptionParser.new("usage: #{$0}") do |opts| opts.on('-f','--file FILE','loads a file') do |file| puts "loading file #{file}" -
postmodern revised this gist
Dec 13, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ opts.on('-f','--file FILE','loads a file') do |file| puts "loading file #{file}" opts.separator "#{file} options:" opts.on('-c','--custom') do puts "custom option defined by file #{file}" end -
postmodern revised this gist
Dec 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ options = OptionParser.new('test') do |opts| opts.on('-f','--file FILE','loads a file') do |file| puts "loading file #{file}" opts.on('-c','--custom') do puts "custom option defined by file #{file}" -
postmodern renamed this gist
Dec 13, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
postmodern created this gist
Dec 13, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ require 'optparse' options = OptionParser.new('test') do |opts| opts.on('-f','--file FILE','loads a file') do |file| puts "loading file" opts.on('-c','--custom') do puts "custom option defined by file #{file}" end end end options.parse(ARGV)