diff options
Diffstat (limited to 'src/GF/Shell.hs')
| -rw-r--r-- | src/GF/Shell.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GF/Shell.hs b/src/GF/Shell.hs index cb6d3ff18..27ceb19e0 100644 --- a/src/GF/Shell.hs +++ b/src/GF/Shell.hs @@ -209,9 +209,10 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of ---- deprec! CSetLocalFlag lang -> changeState (addLocalOptions lang opts0) sa CHelp (Just c) -> returnArg (AString (txtHelpCommand c)) sa - CHelp _ - | oElem showAll opts -> returnArg (AString txtHelpFile) sa - | otherwise -> returnArg (AString txtHelpFileSummary) sa + CHelp _ -> case opts0 of + Opts [o] | o == showAll -> returnArg (AString txtHelpFile) sa + Opts [o] -> returnArg (AString (txtHelpCommand ('-':prOpt o))) sa + _ -> returnArg (AString txtHelpFileSummary) sa CPrintGrammar -> returnArg (AString (optPrintGrammar opts gro)) sa CPrintGlobalOptions -> justOutput (putStrLn $ prShellStateInfo st) sa |
