1 parent 3e177cf commit 6655feeCopy full SHA for 6655fee
1 file changed
cli4/cli4.py
@@ -122,9 +122,11 @@ def walk(m, s):
122
continue
123
a = getattr(m, n)
124
d = dir(a)
125
- if 'delete' in d or 'get' in d or 'patch' in d or 'post' in d or 'put' in d:
+ if '_base' in d:
126
# it's a known api call - lets print it and continue down the tree
127
- print s + '/' + n
+ if 'delete' in d or 'get' in d or 'patch' in d or 'post' in d or 'put' in d:
128
+ # only print if a call exists for this part
129
+ print s + '/' + n
130
walk(a, s + '/' + n)
131
132
def dump_commands(cf):
0 commit comments