Sort the modes in the repoman --help output.
authorZac Medico <zmedico@gentoo.org>
Mon, 15 Oct 2007 07:38:03 +0000 (07:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 15 Oct 2007 07:38:03 +0000 (07:38 -0000)
svn path=/main/trunk/; revision=8125

bin/repoman

index 6c600df00b72144dd1b71ff34298cf86e86ed1c2..70828fe70e670c1b60847a01546f487bdb3c0187 100755 (executable)
@@ -121,6 +121,7 @@ modeshelp={
 "lfull"  : "Remember report from last run (full listing)"
 }
 modes=modeshelp.keys()
+modes.sort()
 repoman_options={
 "--commitmsg"      : "Adds a commit message via the command line",
 "--commitmsgfile"  : "Adds a commit message from the specified file",
@@ -288,6 +289,8 @@ def help(exitstatus=1,helpfulness=1):
        if helpfulness:
                print bold(" Modes:"),turquoise("scan (default)"),
                for x in modes[1:]:
+                       if x == "scan":
+                               continue
                        print "|",turquoise(x),
                print
        print