青山です。

-h オプションも欲しいな。という事で、とりあえず叩き台として Perl の -h
の出力に Ruby の英文リファレンスマニュアルを加えてみました。


Usage: ruby [switches] [--] [programfile] [arguments]
  -0[octal]       specify record separator (\0, if no argument)
  -a              autosplit mode with -n or -p (splits $_ into $F)
  -c              check syntax only (runs BEGIN and END blocks)
  -d
  --debug         set debugging flags (argument is a bit mask or flags)
  -e 'command'    one line of script. Several -e's allowed. Omit [programfile].
  -F/pattern/     split() pattern for autosplit (-a). The //'s are optional.
  -i[extension]   edit ARGV files in place (make backup if extension supplied)
  -I[directory]   specify $LOAD_PATH directory (may be used more than once)
  -l[octal]       enable line ending processing, specifies line terminator
  -r[script]      require the script, before executing your script.
  -n              assume 'while gets; ...; end' loop around your script
  -p              assume loop like -n but print line also like sed
  -s              enable some switch parsing for switches after script name
  -S              look for the script using PATH environment variable
  -T[level]       turn on tainting checks
  -v
  --verbose       enables verbose mode
  --version       print the version
  -w              TURN WARNINGS ON FOR COMPILATION OF YOUR SCRIPT. Recommended.
  -x[directory]   strip off text before #!ruby line and perhaps cd to directory
  -K[kcode]       specifies KANJI (Japanese) code-set
  -X[directory]   cd to directory, before executing your script.
  -y
  --yydebug       turns on compiler debug mode


-- 
青山 和光 Wakou Aoyama <wakou / fsinet.or.jp>