From 199d3b7aee845c39f9330cc14cf71e6b368cc3d5 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 5 Mar 2022 20:14:10 +0100 Subject: [PATCH] Fix downloader completer --- app/ghcup/GHCup/OptParse.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ghcup/GHCup/OptParse.hs b/app/ghcup/GHCup/OptParse.hs index f4b48cd..ebe48ed 100644 --- a/app/ghcup/GHCup/OptParse.hs +++ b/app/ghcup/GHCup/OptParse.hs @@ -144,13 +144,14 @@ opts = <> metavar "" <> help "Downloader to use (default: internal)" + <> completer (listCompleter ["internal", "curl", "wget"]) #else <> metavar "" <> help "Downloader to use (default: curl)" + <> completer (listCompleter ["curl", "wget"]) #endif <> hidden - <> completer (listCompleter ["curl", "wget"]) )) <*> invertableSwitch "offline" 'o' False (help "Don't do any network calls, trying cached assets and failing if missing.") <*> optional (option