chiark / gitweb /
pwsafe: Present the list of commands in alphabetical order.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 May 2015 09:57:28 +0000 (10:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 May 2015 10:21:01 +0000 (11:21 +0100)
Previously they were in whatever dictionary order.  Hopeless.

pwsafe

diff --git a/pwsafe b/pwsafe
index 043db433b9eb28cb17f7894140017caf170ee322..45086ad7ab2c48f1a9c89ccdb6e7f55fe52e3a10 100644 (file)
--- a/pwsafe
+++ b/pwsafe
@@ -236,7 +236,7 @@ Options:
 
 Commands provided:
 '''
-  for c in commands:
+  for c in sorted(commands):
     print '%s %s' % (c, commands[c][1])
 
 ## Choose a default database file.