Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Aug 7, 2014
1 parent 92a3502 commit c79e910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/pdd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ opts = Slop.parse do
on 'f', 'file', 'File to save XML into', argument: :required
end

fail '-f is mandatory when using -v' if opts.verbose? && !opts.file?

if opts.help?
puts opts
else
Expand Down

0 comments on commit c79e910

Please sign in to comment.