aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/bin
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-14 14:59:27 +0200
committerAnders Svensson <[email protected]>2011-10-17 12:26:47 +0200
commit7352ec2c7d3f52a44b8bc18642dadfdc160209a5 (patch)
treeda9f15d14d691645a81673e9ded6f83ce7a0ba0e /lib/diameter/bin
parent1327c7c7d098a7593e5458bc5c06fd9459e73de3 (diff)
downloadotp-7352ec2c7d3f52a44b8bc18642dadfdc160209a5.tar.gz
otp-7352ec2c7d3f52a44b8bc18642dadfdc160209a5.tar.bz2
otp-7352ec2c7d3f52a44b8bc18642dadfdc160209a5.zip
Allow @inherits to be set/cleared with diameterc
This is to enable dictionaries compiled with --name/--prefix to be inherited using --inherits.
Diffstat (limited to 'lib/diameter/bin')
-rwxr-xr-xlib/diameter/bin/diameterc8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/diameter/bin/diameterc b/lib/diameter/bin/diameterc
index c4dbd0060f..8e0eda10dd 100755
--- a/lib/diameter/bin/diameterc
+++ b/lib/diameter/bin/diameterc
@@ -40,8 +40,9 @@ usage() ->
"~n"
" options:~n"
"~n"
- " --name name = set @name~n"
- " --prefix prefix = set @prefix~n"
+ " --name name = set @name~n"
+ " --prefix prefix = set @prefix~n"
+ " --inherits dict|- = set/clear @inherits~n"
"~n"
" -h = print this message~n"
" -v = verbose output~n"
@@ -122,6 +123,9 @@ arg(["--name", Name | Args], #argv{options = Opts} = A) ->
arg(["--prefix", Name | Args], #argv{options = Opts} = A) ->
arg(Args, A#argv{options = [{prefix, Name} | Opts]});
+arg(["--inherits", Dict | Args], #argv{options = Opts} = A) ->
+ arg(Args, A#argv{options = Opts ++ [{inherits, Dict}]});
+
arg(["-E" | Args], #argv{output = Output} = A) ->
arg(Args, A#argv{output = lists:delete(erl, Output)});