From 07889292dd882ab371eb17c7fd832c875abc6045 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 Mar 2018 02:52:12 +0000 Subject: 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 --- man/ruby.1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'man') 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 -- cgit v1.2.1