Procházet zdrojové kódy

ft: 添加默认选项以适配项目

master
SisMaker před 4 roky
rodič
revize
19f231c995
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. +12
    -2
      src/genProto.erl

+ 12
- 2
src/genProto.erl Zobrazit soubor

@ -2,6 +2,10 @@
-include("genDef.hrl").
-define(DefProtoDir, "./").
-define(DefErlDir, "./").
-define(DefHrlDir, "./").
-export([main/1]).
-export([
@ -13,8 +17,14 @@
]).
main(Args) ->
[ProtoDir, HrlDir, ErlDir] = Args,
convertDir(ProtoDir, HrlDir, ErlDir).
case Args of
[] ->
convertDir(?DefProtoDir, ?DefErlDir, ?DefHrlDir);
_ ->
[ProtoDir, HrlDir, ErlDir] = Args,
convertDir(ProtoDir, HrlDir, ErlDir)
end.
convertFile(File) ->
erlang:erase(),

Načítá se…
Zrušit
Uložit