From 3d43eda1bff9b6e9f766bcbd3f08ab0681432b41 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 21 Aug 2020 09:09:11 +0900 Subject: [PATCH] Update messages related to tidlc options Change-Id: I23b9951e072dc6f669d8d034a0ca7cbdb2d8ebed Signed-off-by: Hwankyu Jhun --- README.md | 4 ++++ idlc/ast/tidlc.yy | 1 + idlc/options.cc | 2 ++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 07a3df4..ac16a11 100755 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ Additional Options: -l, --language=LANGUAGE Select generating language (C, C++, C#). -i, --input=INPUT A tidl interface file. -o, --output=OUTPUT The generated interface file. + -n, --namespace Add the prefix in the funtion name as output file name (C language only). + -r, --rpclib Generate C# library for rpc-port (C# language only). + -b, --beta Use beta version (Support private file sharing). + -t, --thread Generate thread code (Stub only). Application Options: -p, --proxy Generate proxy code diff --git a/idlc/ast/tidlc.yy b/idlc/ast/tidlc.yy index 99668fe..7fd3848 100644 --- a/idlc/ast/tidlc.yy +++ b/idlc/ast/tidlc.yy @@ -405,6 +405,7 @@ base_type: raw_type { | T_FILE { if (!ps->IsBetaEnabled()) { ps->ReportError("syntax error. \"No identifier\".", @1.begin.line); + ps->ReportError("try to use beta version (-b option).", @1.begin.line); $$ = NULL; delete $1; } else { diff --git a/idlc/options.cc b/idlc/options.cc index c19cd5a..b9eaa76 100644 --- a/idlc/options.cc +++ b/idlc/options.cc @@ -36,6 +36,8 @@ Additional Options: -o, --output=OUTPUT The generated interface file. -n, --namespace Add the prefix in the funtion name as output file name (C language only). -r, --rpclib Generate C# library for rpc-port (C# language only). + -b, --beta Use beta version (Support private file sharing). + -t, --thread Generate thread code (Stub only). Application Options: -p, --proxy Generate proxy code -- 2.7.4