summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Command
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/GF/Command')
-rw-r--r--src/compiler/GF/Command/Commands.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compiler/GF/Command/Commands.hs b/src/compiler/GF/Command/Commands.hs
index 6723c4b8f..51f1c1426 100644
--- a/src/compiler/GF/Command/Commands.hs
+++ b/src/compiler/GF/Command/Commands.hs
@@ -924,7 +924,12 @@ allCommands cod env@(pgf, mos) = Map.fromList [
optLangs opts = case valStrOpts "lang" "" opts of
"" -> languages pgf
- lang -> map mkCId (chunks ',' lang)
+ lang -> map completeLang (chunks ',' lang)
+ completeLang la = let cla = (mkCId la) in
+ if elem cla (languages pgf)
+ then cla
+ else (mkCId (showCId (abstractName pgf) ++ la))
+
optLang opts = head $ optLangs opts ++ [wildCId]
optOpenTypes opts = case valStrOpts "openclass" "" opts of