Skip to content

Commit ff5dc62

Browse files
author
Braden Schaeffer
committed
rescue OptionParser exceptions
1 parent a116fb0 commit ff5dc62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/gist.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ def execute(*args)
7575
end
7676
end
7777

78-
opts.parse!(args)
79-
8078
begin
79+
80+
opts.parse!(args)
81+
8182
if $stdin.tty? && args[0] != '-'
8283
# Run without stdin.
8384

0 commit comments

Comments
 (0)