File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
5353def 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 )
You can’t perform that action at this time.
0 commit comments