Skip to content

Commit 23cf6a4

Browse files
committed
Fix Rubocop offenses
1 parent 5b10b87 commit 23cf6a4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

contrib/extract-email

+10-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ class Options
4040

4141
private
4242

43-
USAGE = "Usage: #{$PROGRAM_NAME} --config my-config.json --account me@example.com --folder INBOX --uid 12345 --quiet"
43+
USAGE =
44+
"Usage: #{$PROGRAM_NAME} " \
45+
"--config my-config.json " \
46+
"--account me@example.com " \
47+
"--folder INBOX " \
48+
"--uid 12345 " \
49+
"--quiet"
4450

4551
def parser
4652
@parser ||= OptionParser.new do |opts|
@@ -74,9 +80,9 @@ class Options
7480
end
7581

7682
def fail(message)
77-
$stderr.puts message
78-
$stderr.puts
79-
$stderr.puts USAGE
83+
warn message
84+
warn ""
85+
warn USAGE
8086
exit 1
8187
end
8288
end

0 commit comments

Comments
 (0)