The shell function in CLI.hs shows this gross internal error if it receives --shell not_bash_or_zsh:
most-used-exe: --shell can only take 'bash' or 'zsh'
CallStack (from HasCallStack):
error, called at src/MostUsed/CLI.hs:51:11 in most-used-0.1.0.0-5xJL0L1se38JcakkBKWPOD:MostUsed.CLI
One idea is to add UnsupportedShell to the Shell type and then print an error in Main.hs when the Option type is pulled apart. That's probably the best solution (thanks @gfontenot!).
It's only called directly by most-used-bash and most-used-zsh, though, and the user is unlikely to ever call --shell directly, so this is low priority.
The
shell
function in CLI.hs shows this gross internal error if it receives--shell not_bash_or_zsh
:One idea is to add
UnsupportedShell
to theShell
type and then print an error inMain.hs
when theOption
type is pulled apart. That's probably the best solution (thanks @gfontenot!).It's only called directly by
most-used-bash
andmost-used-zsh
, though, and the user is unlikely to ever call--shell
directly, so this is low priority.