From 4132447e043579b59c7efcbc65cc5da1156c98fd Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 12 Nov 2023 16:49:39 +0800 Subject: [PATCH] Require user to explicitly choose subcommand for 'ghcup config' This should further reduce confusion wrt #922 --- lib-opt/GHCup/OptParse/Config.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib-opt/GHCup/OptParse/Config.hs b/lib-opt/GHCup/OptParse/Config.hs index b4f8bf6..c04eac5 100644 --- a/lib-opt/GHCup/OptParse/Config.hs +++ b/lib-opt/GHCup/OptParse/Config.hs @@ -67,7 +67,6 @@ configP = subparser <> command "show" showP <> command "add-release-channel" addP ) - <|> argsP -- add show for a single option <|> pure ShowConfig where initP = info (pure InitConfig) (progDesc "Write default config to ~/.ghcup/config.yaml")