File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
YukimiScript.CommandLineTool Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ let private help () =
1919 " Options:"
2020 " --lib <LIBPATH> Import external library(ies) from file or dir."
2121 " --debug, -g Enable debugging information."
22- " -L<LIB_SEARCH_DIR> Add library searching dir for -l."
22+ " -L<LIB_SEARCH_DIR> Add library searching dir for -l,"
23+ " you can even pass this argument by env variable "
24+ " \" YKM_LIB_PATH\" and split it by \' :\' ."
2325 " -l<LIBNAME> Import library from -L dirs,"
24- " -lpymo means search \' libpymo.ykm\' ,"
25- " -l\" libpymo.ykm\" means search \' libpymo.ykm\' ."
26+ " -lpymo means search \" libpymo.ykm\" ,"
27+ " -l\" libpymo.ykm\" means search \" libpymo.ykm\" ."
2628 " "
2729 " Diagram Types:"
2830 " dgml Visual Studio Directed Graph Markup Language."
@@ -48,10 +50,16 @@ type private Options =
4850 Debugging: bool }
4951
5052
53+ let defaultLibSearchDirs =
54+ let e = System.Environment.GetEnvironmentVariable ( " YKM_LIB_PATH" )
55+ if String.IsNullOrWhiteSpace e then [] else
56+ e.Split ':' |> List.ofArray
57+
58+
5159let private defaultOptions =
5260 { Lib = []
5361 Debugging = false
54- LibSearchDir = [ " ." ] }
62+ LibSearchDir = " ." :: defaultLibSearchDirs }
5563
5664
5765type private TargetOption =
You can’t perform that action at this time.
0 commit comments