diff options
author | 2012-02-16 16:53:44 -0400 | |
---|---|---|
committer | 2012-02-16 16:53:44 -0400 | |
commit | 990fcad9787ef5fa3b7c039c3ee01ef298b60a27 (patch) | |
tree | b644e53ea09cc35994f6187ccd1434d802a790b6 /Usage.hs | |
parent | db6b4cdfcf67cfc3fce5e5f4323aa96a6ebd3e59 (diff) |
order commands in usage by name
Diffstat (limited to 'Usage.hs')
-rw-r--r-- | Usage.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ module Usage where +import Common.Annex import System.Console.GetOpt import Types.Command @@ -30,7 +31,7 @@ usage header cmds commonoptions = unlines $ alloptlines = filter (not . null) $ lines $ usageInfo "" $ concatMap cmdoptions cmds ++ commonoptions - (cmdlines, optlines) = go cmds alloptlines [] + (cmdlines, optlines) = go (sort cmds) alloptlines [] go [] os ls = (ls, os) go (c:cs) os ls = go cs os' (ls++(l:o)) where |