Skip to content

Commit 71b2f5a

Browse files
committed
simulation: removed short- from short-leios snd short-leios-p2p-1
config supports both short and full
1 parent 60f9c77 commit 71b2f5a

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

simulation/src/Main.hs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,15 @@ parserVizSubCommand =
262262
, command "short-leios-1" . info (pure VizShortLeios1) $
263263
progDesc
264264
"A simulation of two nodes running Short Leios."
265-
, command "short-leios-p2p-1" . info (parserShortLeiosP2P1 <**> helper) $
265+
, command "short-leios-p2p-1" . info leiosP2P $
266266
progDesc
267-
"A simulation of 100 nodes running Short Leios."
267+
"Alias for leios-p2p-1."
268+
, command "leios-p2p-1" . info leiosP2P $
269+
progDesc
270+
"A simulation of 100 nodes running Leios."
268271
]
272+
where
273+
leiosP2P = parserShortLeiosP2P1 <**> helper
269274

270275
parserPraosP2P1 :: Parser VizSubCommand
271276
parserPraosP2P1 =
@@ -430,10 +435,14 @@ parserSimCommand =
430435
subparser . mconcat $
431436
[ commandGroup "Available simulations:"
432437
, command "praos-diffusion" . info (parserSimPraosDiffusion <**> helper) $
433-
progDesc ""
434-
, command "short-leios" . info (parserShortLeios <**> helper) $
435-
progDesc ""
438+
progDesc "Praos simulation."
439+
, command "short-leios" . info leios $
440+
progDesc "Alias for `leios`."
441+
, command "leios" . info leios $
442+
progDesc "Leios simulation."
436443
]
444+
where
445+
leios = parserShortLeios <**> helper
437446

438447
parserSimPraosDiffusion :: Parser SimCommand
439448
parserSimPraosDiffusion =

0 commit comments

Comments
 (0)