From a7116a8b0f1d395828a55a58cdfaebf787d21a8e Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Wed, 26 Feb 2025 20:52:37 +0000 Subject: [PATCH] ;run: missed a spot for replaceNumericFlags --- hledger/Hledger/Cli/Commands/Run.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Commands/Run.hs b/hledger/Hledger/Cli/Commands/Run.hs index 38433f669..8e2b20bdc 100644 --- a/hledger/Hledger/Cli/Commands/Run.hs +++ b/hledger/Hledger/Cli/Commands/Run.hs @@ -109,7 +109,7 @@ runCommand defaultJrnl findBuiltinCommand cmdline = do let cmdaction' = if cmdname == "run" then run findBuiltinCommand else cmdaction -- Even though expandArgsAt is done by the Cli.hs, it stops at the first '--', so we need -- to do it here as well to make sure that each command can use @ARGFILEs - args' <- expandArgsAt args + args' <- replaceNumericFlags <$> expandArgsAt args dbg1IO "runCommand final args" (cmdname,args') opts <- getHledgerCliOpts' cmdmode args' withJournalCached defaultJrnl opts (cmdaction' opts)