Disambiguate logLevelParser
This commit is contained in:
parent
9fd738ec97
commit
3665026fbf
@ -60,7 +60,6 @@ logLevelParser =
|
|||||||
logLevelOption =
|
logLevelOption =
|
||||||
option int (
|
option int (
|
||||||
long "verbose" <>
|
long "verbose" <>
|
||||||
short 'v' <>
|
|
||||||
metavar "LEVEL" <>
|
metavar "LEVEL" <>
|
||||||
value 4 <>
|
value 4 <>
|
||||||
showDefault <>
|
showDefault <>
|
||||||
@ -68,12 +67,10 @@ logLevelParser =
|
|||||||
)
|
)
|
||||||
logLevelSwitch =
|
logLevelSwitch =
|
||||||
(4+) . length <$> many (flag' () (
|
(4+) . length <$> many (flag' () (
|
||||||
long "verbose" <>
|
|
||||||
short 'v' <>
|
short 'v' <>
|
||||||
help "Increase log level"
|
help "Increase log level"
|
||||||
))
|
))
|
||||||
silentSwitch = (\v -> if v then 0 else 4) <$>
|
silentSwitch = flag' 0 (
|
||||||
switch (
|
|
||||||
long "silent" <>
|
long "silent" <>
|
||||||
short 's' <>
|
short 's' <>
|
||||||
help "Be silent, set log level to 0"
|
help "Be silent, set log level to 0"
|
||||||
|
Loading…
Reference in New Issue
Block a user