Skip to content

Commit

Permalink
(SDK-321) add pdk validate help
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Jul 21, 2017
1 parent 8693d79 commit 2b46724
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pdk/cli/validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ module PDK::CLI
flag :a, 'auto-correct', _('automatically correct problems (where possible)')

run do |opts, args, _cmd|
if args == ['help']
PDK::CLI.run(['validate', '--help'])
exit 0
end

validator_names = PDK::Validate.validators.map { |v| v.name }
validators = PDK::Validate.validators
targets = []
Expand Down

0 comments on commit 2b46724

Please sign in to comment.