Skip to content

Instantly share code, notes, and snippets.

@banister
Created April 18, 2011 08:37
Show Gist options
  • Save banister/925004 to your computer and use it in GitHub Desktop.
Save banister/925004 to your computer and use it in GitHub Desktop.
require 'slop'
require 'shellwords'
class Blah
def self.friendship
puts "blah"
end
args = "-h".shellsplit
opts = Slop.parse(args) do
banner "Usage: hist [-rSTART..END]"
on :r, :replay, 'The line (or range of lines) to replay.', true, :as => Range
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