Last active
November 17, 2015 11:26
-
-
Save taichiman/a5251824050989c6bec7 to your computer and use it in GitHub Desktop.
cheetsheets
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
some |
CLI Options:
http://ruby-doc.org/stdlib-2.2.0/libdoc/getoptlong/rdoc/GetoptLong.html
The GetoptLong class allows you to parse command line options similarly to the GNU getopt_long() C library call.
http://ruby-doc.org/stdlib-2.2.0/libdoc/optparse/rdoc/OptParse.html
OptionParser is a class for command-line option analysis. It is much more advanced, yet also easier to use, than GetoptLong, and is a more Ruby-oriented solution.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File:
Dir
entries
foreach dir
FileUtils
copy_entry
copy_file
copy_stream
cp, copy