path: root/man
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-30 02:52:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-30 02:52:12 (GMT)
commit07889292dd882ab371eb17c7fd832c875abc6045 (patch)
tree3597c16877141ede500b6f5ca44539ee0b6e1cee /man
parent46b391ff731d66883082e6347d5fc4e54386d7bd (diff)
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:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'man')
1 files changed, 7 insertions, 4 deletions
diff --git a/man/ruby.1 b/man/ruby.1
index 88cef8d..0e98be3 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
.It Fl -copyright
-Prints the copyright notice.
+Prints the copyright notice, and quits immediately without running any
.It Fl -version
-Prints the version of Ruby interpreter.
+Prints the version of Ruby interpreter, and quits immediately without
+running any script.
.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
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.