mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-11-30 14:03:28 +03:00
Add showHelpOnError prefs modifier.
This commit is contained in:
parent
307d78ce57
commit
8c5613e3f5
@ -70,6 +70,7 @@ module Options.Applicative.Builder (
|
||||
PrefsMod,
|
||||
multiSuffix,
|
||||
disambiguate,
|
||||
showHelpOnError,
|
||||
noBacktrack,
|
||||
prefs
|
||||
) where
|
||||
@ -285,6 +286,9 @@ multiSuffix s = PrefsMod $ \p -> p { prefMultiSuffix = s }
|
||||
disambiguate :: PrefsMod
|
||||
disambiguate = PrefsMod $ \p -> p { prefDisambiguate = True }
|
||||
|
||||
showHelpOnError :: PrefsMod
|
||||
showHelpOnError = PrefsMod $ \p -> p { prefShowHelpOnError = True }
|
||||
|
||||
noBacktrack :: PrefsMod
|
||||
noBacktrack = PrefsMod $ \p -> p { prefBacktrack = False }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user