Skip to content

Commit

Permalink
Revert "Revert "Migrating to new CLAide::Arguments (see CocoaPods/CLA…
Browse files Browse the repository at this point in the history
…ide#33)""

This reverts commit 0244f5b.
  • Loading branch information
fabiopelosin committed Aug 12, 2014
1 parent 9f28e74 commit 89a07b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.idea
14 changes: 9 additions & 5 deletions lib/pod/command/trunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class Register < Trunk
DESC

self.arguments = [
['EMAIL', :required],
['NAME', :optional],
CLAide::Argument.new('EMAIL', true),
CLAide::Argument.new('NAME', false),
]

def self.options
Expand Down Expand Up @@ -188,13 +188,15 @@ def run
class AddOwner < Trunk
self.summary = 'Add an owner to a pod'
self.description = <<-DESC
Adds the registered user with specified `OWNER-EMAIL` as an owner
of the given `POD`.
An ‘owner’ is a registered user whom is allowed to make changes to a
pod, such as pushing new versions and adding other ‘owners’.
DESC

self.arguments = [
['POD', :required],
['OWNER-EMAIL', :required],
CLAide::Argument.new('POD', true),
CLAide::Argument.new('OWNER-EMAIL', true)
]

def initialize(argv)
Expand Down Expand Up @@ -239,7 +241,9 @@ class Push < Trunk
versions and add other ‘owners’, not necessarily the library author.)
DESC

self.arguments = [['PATH', :required]]
self.arguments = [
CLAide::Argument.new('PATH', false)
]

def self.options
[
Expand Down

0 comments on commit 89a07b8

Please sign in to comment.