mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 04:45:28 +03:00
Fully extract parseSearchRunner
This commit is contained in:
parent
9436f733b2
commit
4fc984ce75
@ -45,8 +45,10 @@ parseOptions :: Parser Options
|
||||
parseOptions =
|
||||
Options
|
||||
<$> parseSearchRunner
|
||||
(short 'P' <> long "no-progress" <> help "Don't display progress during analysis")
|
||||
|
||||
parseSearchRunner :: Mod FlagFields SearchRunner -> Parser SearchRunner
|
||||
parseSearchRunner :: Parser SearchRunner
|
||||
parseSearchRunner =
|
||||
flag SearchWithProgress SearchWithoutProgress
|
||||
flag SearchWithProgress SearchWithoutProgress $
|
||||
short 'P'
|
||||
<> long "no-progress"
|
||||
<> help "Don't display progress during analysis"
|
||||
|
Loading…
Reference in New Issue
Block a user