Require user to explicitly choose subcommand for 'ghcup config'

This should further reduce confusion wrt #922
This commit is contained in:
Julian Ospald 2023-11-12 16:49:39 +08:00
parent 9d223730de
commit 4132447e04
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43

View File

@ -67,7 +67,6 @@ configP = subparser
<> command "show" showP <> command "show" showP
<> command "add-release-channel" addP <> command "add-release-channel" addP
) )
<|> argsP -- add show for a single option
<|> pure ShowConfig <|> pure ShowConfig
where where
initP = info (pure InitConfig) (progDesc "Write default config to ~/.ghcup/config.yaml") initP = info (pure InitConfig) (progDesc "Write default config to ~/.ghcup/config.yaml")