|
definition: |
checkArgs :: String -> String -> [String] -> IO ()
checkArgs dbfile dir args =
case args of
["-h"] -> spiceupHelp 0
["--help"] -> spiceupHelp 0
["-?"] -> spiceupHelp 0
("--db":ndbfile:margs) -> checkArgs ndbfile dir margs
("--dir":ndir:margs) -> checkArgs dbfile ndir margs
[orgfile] -> createStructureWith orgfile dbfile dir
_ -> putStrLn "Wrong arguments!\n" >> spiceupHelp 1
|
|
demand: |
argument 3 |
|
deterministic: |
deterministic operation |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,{:}) |-> _ || (_,_,{[]}) |-> _}
|
|
name: |
checkArgs |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> String -> [String] -> Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |