1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Marked up command line options [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-08-16 00:28:16 +09:00
parent d2070f2e45
commit 7704bbd640
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -30,23 +30,23 @@ $LOAD_PATH:: Load path for searching Ruby scripts and extension libraries used
the path the original Kernel#require method would load. the path the original Kernel#require method would load.
$LOADED_FEATURES:: The array contains the module names loaded by require. $LOADED_FEATURES:: The array contains the module names loaded by require.
Aliased to $". Aliased to $".
$DEBUG:: The debug flag, which is set by the -d switch. Enabling debug $DEBUG:: The debug flag, which is set by the <tt>-d</tt> switch. Enabling debug
output prints each exception raised to $stderr (but not its output prints each exception raised to $stderr (but not its
backtrace). Setting this to a true value enables debug output as backtrace). Setting this to a true value enables debug output as
if -d were given on the command line. Setting this to a false if <tt>-d</tt> were given on the command line. Setting this to a false
value disables debug output. Aliased to $-d. value disables debug output. Aliased to $-d.
$FILENAME:: Current input filename from ARGF. Same as ARGF.filename. $FILENAME:: Current input filename from ARGF. Same as ARGF.filename.
$stderr:: The current standard error output. $stderr:: The current standard error output.
$stdin:: The current standard input. $stdin:: The current standard input.
$stdout:: The current standard output. $stdout:: The current standard output.
$VERBOSE:: The verbose flag, which is set by the -w or -v switch. Setting $VERBOSE:: The verbose flag, which is set by the <tt>-w</tt> or <tt>-v</tt> switch.
this to a true value enables warnings as if -w or -v were given Setting this to a true value enables warnings as if <tt>-w</tt> or <tt>-v</tt> were given
on the command line. Setting this to +nil+ disables warnings, on the command line. Setting this to +nil+ disables warnings,
including from Kernel#warn. Aliased to $-v and $-w. including from Kernel#warn. Aliased to $-v and $-w.
$-a:: True if option -a is set. Read-only variable. $-a:: True if option <tt>-a</tt> is set. Read-only variable.
$-i:: In in-place-edit mode, this variable holds the extension, otherwise +nil+. $-i:: In in-place-edit mode, this variable holds the extension, otherwise +nil+.
$-l:: True if option -l is set. Read-only variable. $-l:: True if option <tt>-l</tt> is set. Read-only variable.
$-p:: True if option -p is set. Read-only variable. $-p:: True if option <tt>-p</tt> is set. Read-only variable.
== Pre-defined global constants == Pre-defined global constants