-
-
Save leejarvis/3a1df043a925b23c9989 to your computer and use it in GitHub Desktop.
This file contains 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 characters
$LOAD_PATH.unshift './lib' | |
require 'slop' | |
require 'shellwords' | |
class Blah | |
def self.friendship | |
puts "blah" | |
end | |
args = "-h".shellsplit | |
opts = Slop.parse(args) do |opts| | |
opts.banner "Usage: hist [-rSTART..END]" | |
opts.on :r, :replay, 'The line (or range of lines) to replay.', true, :as => Range | |
opts.on :h, :help, 'Show this message.', :tail => true do | |
friendship | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment