From 803cd003d4df58c7c9d712a3ec3e8247522ed671 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 5 Jan 2024 17:50:11 +0900 Subject: [PATCH] Update help text --- mrblib/rf/config.rb | 2 +- spec/global_options/help_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mrblib/rf/config.rb b/mrblib/rf/config.rb index 46f04e6..02fef52 100644 --- a/mrblib/rf/config.rb +++ b/mrblib/rf/config.rb @@ -116,7 +116,7 @@ def global_options # rubocop:disable Metrics/AbcSize end opt.on('-n', '--quiet', 'suppress automatic printing') { @config.quiet = true } opt.on('-s', '--slurp', 'read all reacords into an array') { @config.slurp = true } - opt.on('--[no-]color', '[no] colorized output (default: --color)') do |v| + opt.on('--[no-]color', '[no] colorized output (default: --color in TTY)') do |v| @config.color = v end opt.on('--help', 'show this message') { print_help_and_exit } diff --git a/spec/global_options/help_spec.rb b/spec/global_options/help_spec.rb index 02fd06c..a200fc7 100644 --- a/spec/global_options/help_spec.rb +++ b/spec/global_options/help_spec.rb @@ -22,7 +22,7 @@ text options: -F, --filed-separator VAL set the field separator (allow regexp) - --[no-]color [no] colorized output (default: --color) + --[no-]color [no] colorized output (default: --color in TTY) json options: -r, --raw-string output raw strings