lib/remote_syslog/cli.rb in remote_syslog-1.3.0 vs lib/remote_syslog/cli.rb in remote_syslog-1.3.1
- old
+ new
@@ -5,12 +5,12 @@
module RemoteSyslog
class Cli
FIELD_REGEXES = {
- 'syslog' => /^(\w+ \d+ \S+) (\w+) ([^: ]+):? (.*)$/,
- 'rfc3339' => /^(\S+) (\w+) ([^: ]+):? (.*)$/
+ 'syslog' => /^(\w+ +\d+ \S+) (\S+) ([^: ]+):? (.*)$/,
+ 'rfc3339' => /^(\S+) (\S+) ([^: ]+):? (.*)$/
}
def self.process!(argv)
c = new(argv)
c.parse
@@ -80,14 +80,14 @@
@parse_fields = FIELD_REGEXES['syslog']
end
opts.on("-s", "--severity SEVERITY", "Severity (notice)") do |v|
@severity = v
end
- opts.on("--tls", "Connect via TCP with TLS") do
- @tls = true
- end
opts.on("--strip-color", "Strip color codes") do
@strip_color = true
+ end
+ opts.on("--tls", "Connect via TCP with TLS") do
+ @tls = true
end
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit
end
\ No newline at end of file