rduplain/flask-script — Issue #26: Sorted commands
Author: rduplain
Created: 2012-02-29 15:53:16+00:00
State: open
Labels: enhancement, import

A patch to sort commands:

--- a/flaskext/script.py Sun Aug 15 22:16:14 2010 +0100
+++ b/flaskext/script.py Mon Aug 30 19:36:18 2010 +0200
@@ -575,7 +575,7 @@

rv = []

- for name, command in self._commands.iteritems():
+ for name, command in sorted(self._commands.iteritems()):
usage = name
description = command.description or ''
usage = format % (name, description)

Davide Muzzarelli
www.dav-muz.net

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-script/issue/14
- Originally Reported By: Anonymous
- Originally Created At: 2010-08-30 19:44:11