Skip to content

Commit 4f2f0ec

Browse files
author
longv2go
committed
Fix description of pmethods
1 parent c6eb2b2 commit 4f2f0ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

commands/FBClassDump.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def name(self):
1414
return 'pmethods'
1515

1616
def description(self):
17-
return 'Print the class instance methods.'
17+
return 'Print the class and instance methods of a class.'
1818

1919
def options(self):
2020
return [
@@ -24,7 +24,7 @@ def options(self):
2424
]
2525

2626
def args(self):
27-
return [ fb.FBCommandArgument(arg='class or instance', type='id or Class', help='an Objective-C Class.') ]
27+
return [ fb.FBCommandArgument(arg='class or instance', type='instance or Class', help='an Objective-C Class.') ]
2828

2929
def run(self, arguments, options):
3030
cls = arguments[0]
@@ -52,6 +52,9 @@ def isClassObject(arg):
5252

5353
def printInstanceMethods(cls, showaddr=False, prefix='-'):
5454
json_method_array = get_oc_methods_json(cls)
55+
if not json_method_array:
56+
print "No methods were found"
57+
5558
if json_method_array:
5659
for m in json_method_array:
5760
method = Method(m)

0 commit comments

Comments
 (0)