Skip to content

Commit cfbd683

Browse files
Sort commands in help strings
1 parent 4e64b22 commit cfbd683

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudinary_cli/utils/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def get_help_str(module, block_list=(), allow_list=()):
4949
and (f in allow_list or not allow_list),
5050
module.__dict__.keys()))
5151

52+
funcs.sort()
53+
5254
template = "{0:" + str(len(max(funcs, key=len)) + 1) + "}({1})" # Gets the maximal length of the functions' names
5355

5456
return '\n'.join([template.format(f, ", ".join(list(signature(module.__dict__[f]).parameters))) for f in funcs])

0 commit comments

Comments
 (0)