lib/pod/command/spec/doc.rb in cocoapods-docs-0.0.1 vs lib/pod/command/spec/doc.rb in cocoapods-docs-0.2.0
- old
+ new
@@ -1,24 +1,26 @@
module Pod
class Command
class Spec
class Doc < Spec
- self.summary = "Opens the web documentation of a Pod."
+ self.summary = 'Opens the web documentation of a Pod.'
self.description = <<-DESC
Opens the web documentation of the Pod with the given NAME.
DESC
- self.arguments = 'NAME'
+ self.arguments = [
+ CLAide::Argument.new('NAME', true),
+ ]
def initialize(argv)
@name = argv.shift_argument
super
end
def validate!
super
- help! "A Pod name is required." unless @name
+ help! 'A Pod name is required.' unless @name
end
def run
path = get_path_of_spec(@name)
spec = Specification.from_file(path)