From f7b2a83059697f1b36a6369e489ac276e7ff875d Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 27 Jun 2008 09:09:29 +0000 Subject: version-related changes in Makefile and help --- src/GF/Command/Abstract.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/GF/Command/Abstract.hs') diff --git a/src/GF/Command/Abstract.hs b/src/GF/Command/Abstract.hs index 29111b432..1ae5d6dff 100644 --- a/src/GF/Command/Abstract.hs +++ b/src/GF/Command/Abstract.hs @@ -65,3 +65,10 @@ prOpt o = case o of mkOpt :: String -> Option mkOpt = OOpt +-- abbreviation convention from gf commands +getCommandOp s = case break (=='_') s of + (a:_,_:b:_) -> [a,b] -- axx_byy --> ab + _ -> case s of + [a,b] -> s -- ab --> ab + a:_ -> [a] -- axx --> a + -- cgit v1.2.3