mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-11-27 11:56:20 +03:00
Add modifier for disambiguate option.
This commit is contained in:
parent
4f3108ad14
commit
0a2eedb50c
@ -72,6 +72,7 @@ module Options.Applicative.Builder (
|
||||
-- * Builder for 'ParserPrefs'
|
||||
PrefsMod,
|
||||
multiSuffix,
|
||||
disambiguate,
|
||||
prefs
|
||||
) where
|
||||
|
||||
@ -418,6 +419,9 @@ instance Monoid PrefsMod where
|
||||
multiSuffix :: String -> PrefsMod
|
||||
multiSuffix s = PrefsMod $ \p -> p { prefMultiSuffix = s }
|
||||
|
||||
disambiguate :: PrefsMod
|
||||
disambiguate = PrefsMod $ \p -> p { prefDisambiguate = True }
|
||||
|
||||
prefs :: PrefsMod -> ParserPrefs
|
||||
prefs m = applyPrefsMod m base
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user