fix:cli: don't ignore first cli arg when there's a conf command arg

This commit is contained in:
Simon Michael 2024-10-12 21:33:06 -10:00
parent b04a0e4e79
commit c6bc020609

View File

@ -313,7 +313,7 @@ main = withGhcDebug' $ do
let
finalargs =
[cmdarg | not $ null cmdarg] <> supportedgenargsfromconf <> confcmdargs <> cliargswithoutcmd
[cmdarg | not $ null cmdarg] <> supportedgenargsfromconf <> confcmdargs <> [clicmdarg | not $ null confcmdarg] <> cliargswithoutcmd
& replaceNumericFlags -- convert any -NUM opts from the config file
-- finalargs' <- expandArgsAt finalargs -- expand @ARGFILEs in the config file ? don't bother
dbgIO1 "final args" finalargs