@@ -949,9 +949,10 @@ copyCommand = CommandUI
949
949
, " COMPONENTS [FLAGS]"
950
950
]
951
951
, commandDefaultFlags = defaultCopyFlags
952
- , commandOptions = \ showOrParseArgs ->
953
- (filter ((`notElem` [" target-package-db" ])
954
- . optionName)) $ copyOptions showOrParseArgs
952
+ , commandOptions = \ showOrParseArgs -> case showOrParseArgs of
953
+ ShowArgs -> filter ((`notElem` [" target-package-db" ])
954
+ . optionName) $ copyOptions ShowArgs
955
+ ParseArgs -> copyOptions ParseArgs
955
956
}
956
957
957
958
copyOptions :: ShowOrParseArgs -> [OptionField CopyFlags ]
@@ -1028,9 +1029,10 @@ installCommand = CommandUI
1028
1029
, commandUsage = \ pname ->
1029
1030
" Usage: " ++ pname ++ " install [FLAGS]\n "
1030
1031
, commandDefaultFlags = defaultInstallFlags
1031
- , commandOptions = \ showOrParseArgs ->
1032
- (filter ((`notElem` [" target-package-db" ])
1033
- . optionName)) $ installOptions showOrParseArgs
1032
+ , commandOptions = \ showOrParseArgs -> case showOrParseArgs of
1033
+ ShowArgs -> filter ((`notElem` [" target-package-db" ])
1034
+ . optionName) $ installOptions ShowArgs
1035
+ ParseArgs -> installOptions ParseArgs
1034
1036
}
1035
1037
1036
1038
installOptions :: ShowOrParseArgs -> [OptionField InstallFlags ]
0 commit comments