easier to roll back this one than merge
This commit is contained in:
parent
b39c0f8819
commit
dc43ca2d00
@ -82,8 +82,8 @@ main = do
|
|||||||
| cmd `isPrefixOf` "binaryfilename" = showModeHelpOr binaryfilenamemode $ putStrLn $ binaryfilename progname
|
| cmd `isPrefixOf` "binaryfilename" = showModeHelpOr binaryfilenamemode $ putStrLn $ binaryfilename progname
|
||||||
| otherwise = showModeHelpOr mainmode $ optserror $ "command "++cmd++" is not recognized"
|
| otherwise = showModeHelpOr mainmode $ optserror $ "command "++cmd++" is not recognized"
|
||||||
showModeHelpOr mode f = do
|
showModeHelpOr mode f = do
|
||||||
when ("version" `in_` (rawopts_ opts)) $ printVersionAndExit
|
|
||||||
when ("help" `in_` (rawopts_ opts)) $ printModeHelpAndExit mode
|
when ("help" `in_` (rawopts_ opts)) $ printModeHelpAndExit mode
|
||||||
|
when ("version" `in_` (rawopts_ opts)) $ printVersionAndExit
|
||||||
f
|
f
|
||||||
|
|
||||||
{- tests:
|
{- tests:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user