mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-09-11 13:37:36 +03:00
Merge pull request #114 from serokell/Player205/#113-Improve-help-message
[#113] Improve error message of dump-config option
This commit is contained in:
commit
e4af3c7310
@ -188,12 +188,14 @@ dumpConfigOptions = hsubparser $
|
||||
where
|
||||
parser = DumpConfig <$> repoTypeOption <*> outputOption
|
||||
|
||||
allRepoTypes = "(" <> intercalate " | " (map (show @String) allFlavors) <> ")"
|
||||
|
||||
repoTypeOption =
|
||||
option repoTypeReadM $
|
||||
short 't' <>
|
||||
long "type" <>
|
||||
metavar "REPOSITORY TYPE" <>
|
||||
help "Git repository type."
|
||||
help ("Git repository type. Can be " <> allRepoTypes <> ". Case insensitive.")
|
||||
|
||||
outputOption =
|
||||
filepathOption $
|
||||
|
Loading…
Reference in New Issue
Block a user