summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 17:50:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 17:50:33 -0500
commitc6ff2119f800089399c359b3a2dee3bbab67bb33 (patch)
tree1f53568f7d561890a4e33c8f2a776b2bbcef2780 /tools
parent90025fbec30a78e84794585bf93604d56b392267 (diff)
downloadhorizon-c6ff2119f800089399c359b3a2dee3bbab67bb33.tar.gz
horizon-c6ff2119f800089399c359b3a2dee3bbab67bb33.tar.bz2
horizon-c6ff2119f800089399c359b3a2dee3bbab67bb33.tar.xz
horizon-c6ff2119f800089399c359b3a2dee3bbab67bb33.zip
validator: Implement -s/--strict for Strict Mode
Diffstat (limited to 'tools')
-rw-r--r--tools/hscript-validate/validator.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/hscript-validate/validator.cc b/tools/hscript-validate/validator.cc
index 3683b5d..cdcb43d 100644
--- a/tools/hscript-validate/validator.cc
+++ b/tools/hscript-validate/validator.cc
@@ -33,6 +33,9 @@ int main(int argc, char *argv[]) {
),
clipp::option("-n", "--no-colour").doc("Do not 'prettify' output")(
[&opts] { opts.reset(ScriptOptionFlags::Pretty); }
+ ),
+ clipp::option("-s", "--strict").doc("Strict parsing")(
+ [&opts] { opts.set(ScriptOptionFlags::StrictMode); }
)
);
if(!clipp::parse(argc, argv, cli)) {