rubygem-fluentd/fix-subcommand-formats-usage.patch
lingsheng 4da6c68012 fix subcommand formats usage
(cherry picked from commit 2a8f04865dbbff4560e3efd582b635306252eeb8)
2021-10-15 17:29:51 +08:00

25 lines
751 B
Diff

From e57a32ff5abf6545911acb6af1d6868db820f82c Mon Sep 17 00:00:00 2001
From: lingsheng <lingsheng@huawei.com>
Date: Fri, 15 Oct 2021 11:30:48 +0800
Subject: [PATCH] fix subcommand formats usage
---
lib/fluent/command/binlog_reader.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/fluent/command/binlog_reader.rb b/lib/fluent/command/binlog_reader.rb
index f77c47c..7054679 100644
--- a/lib/fluent/command/binlog_reader.rb
+++ b/lib/fluent/command/binlog_reader.rb
@@ -217,6 +217,7 @@ module BinlogReaderCommand
class Formats < Base
def initialize(argv = ARGV)
super
+ @opt_parser.banner = "Usage: fluent-binlog-reader #{self.class.to_s.split('::').last.downcase} [options]"
parse_options!
end
--
2.23.0