Skip to content

Commit ebbab5b

Browse files
authored
Merge pull request #6584 from IntersectMBO/russoul/recon-qol
cardano-recon: replace positional FILE/FILES args with named --formulas/--traces (v1.2.1)
2 parents 8da9a7e + a48de87 commit ebbab5b

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

bench/cardano-recon-framework/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for cardano-trace-ltl
22

3+
## 1.2.1 -- May 2026
4+
5+
* Replace positional `FILE` and `FILES` arguments in `cardano-recon` with named `--formulas` and `--traces` options.
6+
37
## 1.2.0 -- May 2026
48

59
* Add `ContinuousFormula` — the temporal-operator-free fragment of `Formula`, with `retract` for

bench/cardano-recon-framework/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ Available options:
4343
--seek-to-end BOOL seek to the end of the trace file before ingesting it
4444
(default: True)
4545
--timeunit <hour|minute|second|millisecond|microsecond>
46-
timeunit (default: second)
46+
unit in which numeric arguments of temporal
47+
operators in input formulas are measured
48+
(default: second)
4749
--on-missing-key <crash|bottom>
4850
behaviour when a formula atom references a missing
4951
event property key (default: bottom)

bench/cardano-recon-framework/app/Cardano/ReCon/Cli.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ parseTimeunit = option readTimeunit $
7777
<> metavar "<hour|minute|second|millisecond|microsecond>"
7878
<> showDefault
7979
<> value Second
80-
<> help "timeunit"
80+
<> help "unit in which numeric arguments of temporal operators in input formulas are measured"
8181

8282
parseEventDuration :: Parser Word
8383
parseEventDuration = option auto (long "duration" <> metavar "INT" <> help "temporal event duration (μs)")
@@ -91,7 +91,7 @@ parseDumpMetrics = option readBool $
9191
<> help "enable periodic metric dumps to stdout"
9292

9393
parseFormulasFile :: Parser FilePath
94-
parseFormulasFile = argument str (metavar "FILE")
94+
parseFormulasFile = option str (long "formulas" <> metavar "FILE" <> help "YAML file with a list of formulas to check")
9595

9696
parseTraceDispatcherCfgFile :: Parser (Maybe FilePath)
9797
parseTraceDispatcherCfgFile =
@@ -102,7 +102,7 @@ parseContext =
102102
option (optional str) (long "context" <> value Nothing <> metavar "FILE" <> help "context variables")
103103

104104
parseTraceFiles :: Parser [FilePath]
105-
parseTraceFiles = some (argument str (metavar "FILES"))
105+
parseTraceFiles = some (option str (long "traces" <> metavar "FILE" <> help "trace log file (repeatable)"))
106106

107107
parseRetention :: Parser Word
108108
parseRetention = option auto $

bench/cardano-recon-framework/cardano-recon-framework.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Cardano Re(altime) Con(formance) Framework based on Linear T
44
category: Cardano
55
Testing
66
copyright: 2026 Intersect.
7-
version: 1.2.0
7+
version: 1.2.1
88
license: Apache-2.0
99
license-files: LICENSE
1010
NOTICE

0 commit comments

Comments
 (0)