lib/nanoc/cli/commands/validate-links.rb in nanoc-3.7.3 vs lib/nanoc/cli/commands/validate-links.rb in nanoc-3.7.4
- old
+ new
@@ -1,17 +1,17 @@
# encoding: utf-8
-usage 'validate-links [options]'
-aliases :validate_links, :vlink
-summary 'validate links in site'
+usage 'validate-links [options]'
+aliases :validate_links, :vlink
+summary 'validate links in site'
be_hidden
description "
Validates the site’s links. By default, both internal and external links will be checked.
"
-flag :i, :internal, 'validate internal links only'
-flag :e, :external, 'validate external links only'
+flag :i, :internal, 'validate internal links only'
+flag :e, :external, 'validate external links only'
module Nanoc::CLI::Commands
class ValidateLinks < ::Nanoc::CLI::CommandRunner
@@ -19,10 +19,10 @@
warn 'The `validate-links` command is deprecated. Please use the new `check` command instead.'
checks = []
checks << 'ilinks' if options[:internal]
checks << 'elinks' if options[:external]
- Nanoc::CLI.run [ 'check', checks ].flatten
+ Nanoc::CLI.run ['check', checks].flatten
end
end
end