Skip to content

Instantly share code, notes, and snippets.

@banister
Created March 1, 2012 00:02
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 banister/cae143e4533416529726 to your computer and use it in GitHub Desktop.
Save banister/cae143e4533416529726 to your computer and use it in GitHub Desktop.
[2] (pry) main: 0> gist -h
Usage: gist [OPTIONS] [METH]
Gist method (doc or source) or input expression to github.
Ensure the `gist` gem is properly working before use. http://github.com/defunkt/gist for instructions.
e.g: gist -m my_method
e.g: gist -d my_method
e.g: gist -i 1..10
e.g: gist -c show-method
e.g: gist -m hello_world --lines 2..-2
options:
-m, --method Gist a method's source.
-d, --doc Gist a method's documentation.
-c, --command Gist a command's source.
-f, --file Gist a file.
-p, --public Create a public gist (default: false)
-l, --lines Only gist a subset of lines.
-i, --in Gist entries from Pry's input expression history. Takes an index or range.
-h, --help Show this message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment