Ruby Command Line Switches
Common command line switches for the ruby command:
-cswitch- Check the syntax of a program without executing it
-wswitch- Gives warning messages during program execution
-eswitch- Executes the code provided in quotation marks
ruby -e 'puts "code demo!"'
-lswitch- Line mode, prints a newline after every line of output
-rnameswitch- Requires the named feature
ruby -rprofile
-vswitch- Shows the ruby version and executes the code in verbose mode
--versionswitch- Shows ruby version information
-hswitch- Shows information about all command-line switches for the interpreter