From b6f9eee96005d5b804427065caf39db4f880a695 Mon Sep 17 00:00:00 2001 From: cannorin Date: Thu, 5 May 2022 19:19:35 +0900 Subject: [PATCH] Fix #160 --- CHANGELOG.md | 3 +++ src/Main.fs | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e2e6739..8102e589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased +- Ts2ocaml now fails when it encounters unknown options, instead of just ignoring it. + ## [1.4.2] - 2022-03-16 - Fix a bug which caused ts2ocaml to generate invalid type declarations. - Fix a bug which causes ts2ocaml to crash when loading mutually-referencing source files. diff --git a/src/Main.fs b/src/Main.fs index dffd60ab..f69cf6d9 100644 --- a/src/Main.fs +++ b/src/Main.fs @@ -26,6 +26,7 @@ let main argv = .Invoke(argv) .wrap(yargs.terminalWidth() |> Some) .parserConfiguration({| ``parse-positional-numbers`` = false |}) + .strict() .config() |> GlobalOptions.register |> Target.register parse Targets.JsOfOCaml.Target.target