on master help sign in
Show <arguments> in common commands
commit4cd20e29ab56df53234bb99b5f41c3234d26327a authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 26 Mar 2018, 18:29 (9 years ago) parent8760f11
1 file changed+2−2
ui/terminal/src/Terminal/Args/Error.hs+2−2
ui/terminal/src/Terminal/Args/Error.hs+2−2
@@ -200,7 +200,7 @@ exitWithOverview intro outro interfaces =
200200
201201
202202toSummary :: String -> Interface -> Maybe P.Doc
203−toSummary exeName (Interface name summary _ _ _ _) =
203+toSummary exeName (Interface name summary _ (Args (args:_)) _ _) =
204204 case summary of
205205 Uncommon ->
206206 Nothing
@@ -208,7 +208,7 @@ toSummary exeName (Interface name summary _ _ _ _) =
208208 Common summaryString ->
209209 Just $
210210 P.vcat
211− [ P.dullcyan $ P.text $ exeName ++ " " ++ name
211+ [ P.dullcyan $ argsToDoc (exeName ++ " " ++ name) args
212212 , P.indent 4 $ reflow summaryString
213213 ]
214214