summaryrefslogtreecommitdiff
path: root/cliapp/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliapp/app.py')
-rw-r--r--cliapp/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cliapp/app.py b/cliapp/app.py
index 494d4b2..fe6a785 100644
--- a/cliapp/app.py
+++ b/cliapp/app.py
@@ -343,7 +343,7 @@ class Application(object):
if self.subcommands:
lines = []
prefix = 'Usage:'
- for cmd in sorted(self.subcommands.keys()):
+ for cmd in sorted(self.subcommands):
if all or cmd not in self.hidden_subcommands:
args = self.cmd_synopsis.get(cmd, '') or ''
lines.append(
@@ -361,7 +361,7 @@ class Application(object):
'''Format OptionParser description, with subcommand support.'''
if self.subcommands:
summaries = []
- for cmd in sorted(self.subcommands.keys()):
+ for cmd in sorted(self.subcommands):
if show_all or cmd not in self.hidden_subcommands:
summaries.append(self._format_subcommand_summary(cmd))
cmd_desc = ''.join(summaries)