Sfoglia il codice sorgente

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

master
SisMaker 4 anni fa
parent
commit
19f231c995
1 ha cambiato i file con 12 aggiunte e 2 eliminazioni
  1. +12
    -2
      src/genProto.erl

+ 12
- 2
src/genProto.erl Vedi File

@ -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(),

Caricamento…
Annulla
Salva