addons: note more issues

This commit is contained in:
Simon Michael 2014-04-26 10:49:37 -07:00
parent 9ce2d6a75a
commit 4b47c1340f
2 changed files with 9 additions and 0 deletions

View File

@ -569,6 +569,7 @@ test-addons:
cp $(TESTADDONS)/hledger-addon.hs $(TESTADDONS)/hledger-addon2.hs
cp $(TESTADDONS)/hledger-addon.hs $(TESTADDONS)/hledger-addon3.exe
cp $(TESTADDONS)/hledger-addon.hs $(TESTADDONS)/hledger-addon3.lhs
cp $(TESTADDONS)/hledger-addon.hs $(TESTADDONS)/hledger-add
chmod +x $(TESTADDONS)/hledger-*
######################################################################

View File

@ -199,6 +199,14 @@ main = do
dbgM "raw args after command" argsaftercmd
-- search PATH for add-ons
-- XXX
-- disallow addons matching builtin commands ?
-- $ hledger print
-- hledger: Ambiguous mode 'print', could be any of: print print
-- allow invocation with extension even when it's hidden ?
-- $ hledger print.hs
-- hledger: command print.hs is not recognized, run with no command to see a list
addons <- getHledgerAddonCommands
-- parse arguments with cmdargs