From 8216572ff81a66bd0746f7d48770317519c8eaaa Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 5 Apr 2021 09:58:55 -0700 Subject: [PATCH] Add `--arm-types-path` parameter for specifying ARM types.json path --- packages/adl/compiler/cli.ts | 3 ++- packages/adl/compiler/options.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/adl/compiler/cli.ts b/packages/adl/compiler/cli.ts index 6cf9a8afb..9a896eccb 100644 --- a/packages/adl/compiler/cli.ts +++ b/packages/adl/compiler/cli.ts @@ -14,7 +14,7 @@ import { CompilerHost } from "./types.js"; const args = yargs(process.argv.slice(2)) .scriptName("adl") .help() - .strict() + // .strict() -- TODO: Turn this back on if we add library-level option registration .command("compile ", "Compile a directory of ADL files.", (cmd) => { return cmd .positional("path", { @@ -116,6 +116,7 @@ async function getCompilerOptions(): Promise { return { outputPath, + rawParameters: args, swaggerOutputFile: resolve(args["output-path"], "openapi.json"), nostdlib: args["nostdlib"], }; diff --git a/packages/adl/compiler/options.ts b/packages/adl/compiler/options.ts index f59b6158a..5479adc74 100644 --- a/packages/adl/compiler/options.ts +++ b/packages/adl/compiler/options.ts @@ -1,4 +1,5 @@ export interface CompilerOptions { + rawParameters?: any; mainFile?: string; outputPath?: string; swaggerOutputFile?: string;