From: zn@... Date: 2018-03-29T15:06:23+00:00 Subject: [ruby-core:86391] [Ruby trunk Bug#14633] The behavior of command option `--verbose` is different from its help message Issue #14633 has been updated by znz (Kazuhiro NISHIYAMA). nobu (Nobuyoshi Nakada) wrote: > The behavior is correct, as ruby(1) says: > > --verbose Enables verbose mode without printing version message at the > > beginning. It sets the $VERBOSE variable to true. If this > > switch is given, and no other switches are present, Ruby quits > > after printing its version. Last sentence says printing its version, but `ruby --verbose` outputs nothing and quits. ---------------------------------------- Bug #14633: The behavior of command option `--verbose` is different from its help message https://bugs.ruby-lang.org/issues/14633#change-71317 * Author: makimoto (Shimpei Makimoto) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0dev (2018-03-26 trunk 62926) [x86_64-darwin16] * Backport: 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED ---------------------------------------- According to `ruby --help`, command option `--verbose` is ~~~ -v, --verbose print version number, then turn on verbose mode ~~~ But actually it doesn't show version number, and seems to turn verbose mode without any message. I don't know its original intention, but currently its behavior is different its help message. IMO, if the help message is wrong and the behavior is correct, there're three similar options (`--version` just shows version number; `--verbose` just turns verbose mode; `-v` do both), so it's a little confusing. -- https://bugs.ruby-lang.org/ Unsubscribe: