Sort the modes in the repoman --help output. (trunk r8125)
authorZac Medico <zmedico@gentoo.org>
Mon, 15 Oct 2007 18:49:15 +0000 (18:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 15 Oct 2007 18:49:15 +0000 (18:49 -0000)
svn path=/main/branches/2.1.2/; revision=8132

bin/repoman

index 3f024b479eeacb1403dfc6360ee934f57dbfedd0..1b198db11f912271d86c732287f6ec84e5068ca3 100755 (executable)
@@ -105,6 +105,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",
@@ -272,6 +273,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