mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 02:32:50 -06:00
hopefully the last revision of the relative paths handling algorithm
This commit is contained in:
@@ -26,9 +26,10 @@ main = do
|
||||
setConsoleOutputCP codepage
|
||||
#endif
|
||||
args <- getArgs
|
||||
cdir <- getCurrentDirectory
|
||||
case parseOptions cdir args of
|
||||
Ok (opts,files) -> mainOpts opts files
|
||||
case parseOptions args of
|
||||
Ok (opts,files) -> do curr_dir <- getCurrentDirectory
|
||||
lib_dir <- getLibraryDirectory opts
|
||||
mainOpts (fixRelativeLibPaths curr_dir lib_dir opts) files
|
||||
Bad err -> do hPutStrLn stderr err
|
||||
hPutStrLn stderr "You may want to try --help."
|
||||
exitFailure
|
||||
|
||||
Reference in New Issue
Block a user