Skip to content

Commit

Permalink
Improve REPL help message for :unfold options
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHoefer committed Aug 19, 2024
1 parent f14d114 commit 9a267b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ quitCmd = command ":quit" (info (pure Quit) (progDesc "Quit repl"))
unfoldCmd :: Mod CommandFields ReplCmd
unfoldCmd = command ":unfold" $ info
(Unfold <$> option auto (short 's' <> metavar "STEPS" <> showDefault <> value 1 <> help "Number of unfold steps")
<*> option auto (short 'd' <> metavar "DISPLAY-STYLE" <> showDefault <> value Sequential
<> help "Presentation of unfolded steps. Either `Summed` or `Sequential`")
<*> option auto (short 'd' <> metavar "[Summed|Sequential]" <> showDefault <> value Sequential <> help "Presentation of unfolded steps")
<*> (unwords <$> many (argument str (metavar "DEF"))))
(progDesc "Perform a single unfolding steps on given definition or, if not argument is given, on the last considered term.")

Expand Down

0 comments on commit 9a267b3

Please sign in to comment.