diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-30 02:52:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-30 02:52:12 +0000 |
commit | 07889292dd882ab371eb17c7fd832c875abc6045 (patch) | |
tree | 3597c16877141ede500b6f5ca44539ee0b6e1cee /man | |
parent | 46b391ff731d66883082e6347d5fc4e54386d7bd (diff) | |
download | bundler-07889292dd882ab371eb17c7fd832c875abc6045.tar.gz |
ruby.1: [DOC] options to exit [ci skip]
* man/ruby.1: `--copyright` and `--version` quit immediately, and
also `--verbose` if no scripts are given.
[ruby-core:86391] [Bug #14633]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'man')
-rw-r--r-- | man/ruby.1 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/man/ruby.1 b/man/ruby.1 index 88cef8d480..0e98be3210 100644 --- a/man/ruby.1 +++ b/man/ruby.1 @@ -143,10 +143,12 @@ They are quite similar to those of .Bl -tag -width "1234567890123" -compact .Pp .It Fl -copyright -Prints the copyright notice. +Prints the copyright notice, and quits immediately without running any +script. .Pp .It Fl -version -Prints the version of Ruby interpreter. +Prints the version of Ruby interpreter, and quits immediately without +running any script. .Pp .It Fl 0 Ns Op Ar octal (The digit @@ -457,8 +459,9 @@ Enables verbose mode without printing version message at the beginning. It sets the .Li "$VERBOSE" variable to true. -If this switch is given, and no other switches are present, Ruby quits -after printing its version. +If this switch is given, and no script arguments (script file or +.Fl e +options) are present, Ruby quits immediately. .El .Pp .Sh ENVIRONMENT |