Skip to content

Commit c1eaeb0

Browse files
committed
Enhance command banner in OptionParser for improved visibility
1 parent c5c9f55 commit c1eaeb0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/redhound/command.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ def run(argv)
1818

1919
def parse(argv)
2020
OptionParser.new do |o|
21-
o.banner = <<~'BANNER'
21+
o.banner = <<~'BANNER' + <<~BANNER2
2222
___ ____ __
2323
/ _ \___ ___/ / / ___ __ _____ ___/ /
2424
/ , _/ -_) _ / _ \/ _ \/ // / _ \/ _ /
2525
/_/|_|\__/\_,_/_//_/\___/\_,_/_//_/\_,_/
26+
27+
BANNER
2628
Version: #{Redhound::VERSION}
2729
Dump and analyze network packets.
2830
2931
Usage: redhound [options] ...
30-
BANNER
32+
BANNER2
3133
o.separator ""
3234
o.separator "Options:"
3335
o.on("-i", "--interface INTERFACE", "name or idx of interface") { |v| @options[:ifname] = v }

0 commit comments

Comments
 (0)