Closed kchaloux closed 10 years ago
Not done yet. GitHub doesn’t let you reopen closed pull requests that it thinks were merged.
Closed for realsies:
diff --git a/src/Repl.hs b/src/Repl.hs
index 0f317f6..61a5d27 100644
--- a/src/Repl.hs
+++ b/src/Repl.hs
@@ -94,7 +94,7 @@ data ReplCommand = ReplCommand
newArgCommand :: [Text] -> (Text -> ReplInput ()) -> Text -> Text -> ReplCommand
newArgCommand symbols func fmtArgs helpText =
ReplCommand
- { cmdSymbols = symbols
+ { cmdSymbols = fmtSymbols
, cmdFunc = func
, cmdDesc = ReplCommandDesc
{ descCommand = T.unwords [symbolText, fmtArgs]
New commands added to the
replCommands
list should now automatically be registered for use in therepl
function, and will show up in thehelp
listing.