Skip to content

Commit 0790ed6

Browse files
author
Andre Arko
committed
Merge pull request #47 from bschaeffer/optparser_exceptions
rescue OptionParser exceptions
2 parents fea7f0a + ff5dc62 commit 0790ed6

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
@@ -80,9 +80,10 @@ def execute(*args)
8080
end
8181
end
8282

83-
opts.parse!(args)
84-
8583
begin
84+
85+
opts.parse!(args)
86+
8687
if $stdin.tty? && args[0] != '-'
8788
# Run without stdin.
8889

0 commit comments

Comments
 (0)