From 0f0e65f706eb67e8035e9737cc4647fffe15f5f8 Mon Sep 17 00:00:00 2001 From: aarne Date: Sun, 22 Jun 2008 13:07:09 +0000 Subject: tree visualization command --- src-3.0/GF/Command/Abstract.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src-3.0/GF/Command/Abstract.hs') diff --git a/src-3.0/GF/Command/Abstract.hs b/src-3.0/GF/Command/Abstract.hs index b26499d54..23f76fa82 100644 --- a/src-3.0/GF/Command/Abstract.hs +++ b/src-3.0/GF/Command/Abstract.hs @@ -54,6 +54,9 @@ valOpts flag def opts = case lookup flag flags of isOpt :: String -> [Option] -> Bool isOpt o opts = elem o [x | OOpt x <- opts] +isFlag :: String -> [Option] -> Bool +isFlag o opts = elem o [x | OFlag x _ <- opts] + prOpt :: Option -> String prOpt (OOpt i) = i ---- -- cgit v1.2.3