\href{https://travis-ci.org/yargs/yargs-parser}{\texttt{ }} \href{https://www.npmjs.com/package/yargs-parser}{\texttt{ }} \href{https://github.com/conventional-changelog/standard-version}{\texttt{ }}

The mighty option parser used by \href{https://github.com/yargs/yargs}{\texttt{ yargs}}.

visit the \href{http://yargs.js.org/}{\texttt{ yargs website}} for more examples, and thorough usage instructions.

\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md679}{}\doxysection{Example}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md679}

\begin{DoxyCode}{0}
\DoxyCodeLine{npm i yargs-\/parser -\/-\/save }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{var argv = require('yargs-\/parser')(process.argv.slice(2))}
\DoxyCodeLine{console.log(argv) }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo=33 -\/-\/bar hello}
\DoxyCodeLine{\{ \_: [], foo: 33, bar: 'hello' \} }

\end{DoxyCode}


{\itshape or parse a string!}


\begin{DoxyCode}{0}
\DoxyCodeLine{var argv = require('yargs-\/parser')('-\/-\/foo=99 -\/-\/bar=33')}
\DoxyCodeLine{console.log(argv) }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{\{ \_: [], foo: 99, bar: 33 \} }

\end{DoxyCode}


Convert an array of mixed types before passing to {\ttfamily yargs-\/parser}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{var parse = require('yargs-\/parser')}
\DoxyCodeLine{parse(['-\/f', 11, '-\/-\/zoom', 55].join(' '))   // <-\/-\/ array to string}
\DoxyCodeLine{parse(['-\/f', 11, '-\/-\/zoom', 55].map(String)) // <-\/-\/ array of strings }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md680}{}\doxysection{API}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md680}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md681}{}\doxysubsection{require(\textquotesingle{}yargs-\/parser\textquotesingle{})(args, opts=\{\})}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md681}
Parses command line arguments returning a simple mapping of keys and values.

{\bfseries{expects\+:}}


\begin{DoxyItemize}
\item {\ttfamily args}\+: a string or array of strings representing the options to parse.
\item {\ttfamily opts}\+: provide a set of hints indicating how {\ttfamily args} should be parsed\+:
\begin{DoxyItemize}
\item {\ttfamily opts.\+alias}\+: an object representing the set of aliases for a key\+: `\{alias\+: \{foo\+: \mbox{[}\textquotesingle{}f'\mbox{]}\}\}{\ttfamily . $\ast$}opts.\+array$<$tt$>$\+: indicate that keys should be parsed as an array\+:\{array\+: \mbox{[}\textquotesingle{}foo\textquotesingle{}, \textquotesingle{}bar\textquotesingle{}\mbox{]}\}\`{}.~\newline
 Indicate that keys should be parsed as an array and coerced to booleans / numbers\+:~\newline
 `\{array\+: \mbox{[}\{ key\+: \textquotesingle{}foo', boolean\+: true \}, \{key\+: \textquotesingle{}bar\textquotesingle{}, number\+: true\}\mbox{]}\}{\ttfamily . $\ast$}opts.\+boolean$<$tt$>$\+: arguments should be parsed as booleans\+:\{boolean\+: \mbox{[}\textquotesingle{}x\textquotesingle{}, \textquotesingle{}y\textquotesingle{}\mbox{]}\}{\ttfamily . $\ast$}opts.\+coerce\`{}\+: provide a custom synchronous function that returns a coerced value from the argument provided (or throws an error). For arrays the function is called only once for the entire array\+:~\newline
 {\ttfamily \{coerce\+: \{foo\+: function (arg) \{return modified\+Arg\}\}\}}.
\item {\ttfamily opts.\+config}\+: indicate a key that represents a path to a configuration file (this file will be loaded and parsed).
\item {\ttfamily opts.\+config\+Objects}\+: configuration objects to parse, their properties will be set as arguments\+:~\newline
 `\{config\+Objects\+: \mbox{[}\{\textquotesingle{}x'\+: 5, \textquotesingle{}y\textquotesingle{}\+: 33\}, \{\textquotesingle{}z\textquotesingle{}\+: 44\}\mbox{]}\}{\ttfamily . $\ast$}opts.\+configuration$<$tt$>$\+: provide configuration options to the yargs-\/parser (see\+: \mbox{[}configuration\mbox{]}(\#configuration)). $\ast$opts.\+count$<$tt$>$\+: indicate a key that should be used as a counter, e.\+g.,-\/vvv{\ttfamily =}\{v\+: 3\}{\ttfamily . $\ast$}opts.\+default$<$tt$>$\+: provide default values for keys\+:\{default\+: \{x\+: 33, y\+: \textquotesingle{}hello world!\textquotesingle{}\}\}{\ttfamily . $\ast$}opts.\+env\+Prefix$<$tt$>$\+: environment variables (process.\+env$<$tt$>$) with the prefix provided should be parsed. $\ast$opts.\+narg$<$tt$>$\+: specify that a key requiresn{\ttfamily arguments\+:}\{narg\+: \{x\+: 2\}\}{\ttfamily . $\ast$}opts.\+normalize$<$tt$>$\+:path.\+normalize(){\ttfamily will be applied to values set to this key. $\ast$}opts.\+number$<$tt$>$\+: keys should be treated as numbers. $\ast$opts.\+string$<$tt$>$\+: keys should be treated as strings (even if they resemble a number-\/x 33\`{}).
\end{DoxyItemize}
\end{DoxyItemize}

{\bfseries{returns\+:}}


\begin{DoxyItemize}
\item {\ttfamily obj}\+: an object representing the parsed value of {\ttfamily args}
\begin{DoxyItemize}
\item {\ttfamily key/value}\+: key value pairs for each argument and their aliases.
\item {\ttfamily \+\_\+}\+: an array representing the positional arguments.
\item \mbox{[}optional\mbox{]} {\ttfamily -\/-\/}\+: an array with arguments after the end-\/of-\/options flag {\ttfamily -\/-\/}.
\end{DoxyItemize}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md682}{}\doxysubsection{require(\textquotesingle{}yargs-\/parser\textquotesingle{}).\+detailed(args, opts=\{\})}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md682}
Parses a command line string, returning detailed information required by the yargs engine.

{\bfseries{expects\+:}}


\begin{DoxyItemize}
\item {\ttfamily args}\+: a string or array of strings representing options to parse.
\item {\ttfamily opts}\+: provide a set of hints indicating how {\ttfamily args}, inputs are identical to `require(\textquotesingle{}yargs-\/parser')(args, opts=\{\})\`{}.
\end{DoxyItemize}

{\bfseries{returns\+:}}


\begin{DoxyItemize}
\item {\ttfamily argv}\+: an object representing the parsed value of {\ttfamily args}
\begin{DoxyItemize}
\item {\ttfamily key/value}\+: key value pairs for each argument and their aliases.
\item {\ttfamily \+\_\+}\+: an array representing the positional arguments.
\item \mbox{[}optional\mbox{]} {\ttfamily -\/-\/}\+: an array with arguments after the end-\/of-\/options flag {\ttfamily -\/-\/}.
\end{DoxyItemize}
\item {\ttfamily error}\+: populated with an error object if an exception occurred during parsing.
\item {\ttfamily aliases}\+: the inferred list of aliases built by combining lists in {\ttfamily opts.\+alias}.
\item {\ttfamily new\+Aliases}\+: any new aliases added via camel-\/case expansion\+:
\begin{DoxyItemize}
\item {\ttfamily boolean}\+: {\ttfamily \{ foo\+Bar\+: true \}}
\end{DoxyItemize}
\item {\ttfamily defaulted}\+: any new argument created by {\ttfamily opts.\+default}, no aliases included.
\begin{DoxyItemize}
\item {\ttfamily boolean}\+: {\ttfamily \{ foo\+: true \}}
\end{DoxyItemize}
\item {\ttfamily configuration}\+: given by default settings and {\ttfamily opts.\+configuration}.
\end{DoxyItemize}

\label{_configuration}%
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md683}{}\doxysubsection{Configuration}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md683}
The yargs-\/parser applies several automated transformations on the keys provided in {\ttfamily args}. These features can be turned on and off using the {\ttfamily configuration} field of {\ttfamily opts}.


\begin{DoxyCode}{0}
\DoxyCodeLine{var parsed = parser(['-\/-\/no-\/dice'], \{}
\DoxyCodeLine{  configuration: \{}
\DoxyCodeLine{    'boolean-\/negation': false}
\DoxyCodeLine{  \}}
\DoxyCodeLine{\}) }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md684}{}\doxysubsection{short option groups}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md684}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}.
\item key\+: {\ttfamily short-\/option-\/groups}.
\end{DoxyItemize}

Should a group of short-\/options be treated as boolean flags?


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/abc}
\DoxyCodeLine{\{ \_: [], a: true, b: true, c: true \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/abc}
\DoxyCodeLine{\{ \_: [], abc: true \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md685}{}\doxysubsection{camel-\/case expansion}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md685}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}.
\item key\+: {\ttfamily camel-\/case-\/expansion}.
\end{DoxyItemize}

Should hyphenated arguments be expanded into camel-\/case aliases?


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo-\/bar}
\DoxyCodeLine{\{ \_: [], 'foo-\/bar': true, fooBar: true \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo-\/bar}
\DoxyCodeLine{\{ \_: [], 'foo-\/bar': true \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md686}{}\doxysubsection{dot-\/notation}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md686}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily dot-\/notation}
\end{DoxyItemize}

Should keys that contain {\ttfamily .} be treated as objects?


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo.bar}
\DoxyCodeLine{\{ \_: [], foo: \{ bar: true \} \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo.bar}
\DoxyCodeLine{\{ \_: [], "{}foo.bar"{}: true \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md687}{}\doxysubsection{parse numbers}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md687}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily parse-\/numbers}
\end{DoxyItemize}

Should keys that look like numbers be treated as such?


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo=99.3}
\DoxyCodeLine{\{ \_: [], foo: 99.3 \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/foo=99.3}
\DoxyCodeLine{\{ \_: [], foo: "{}99.3"{} \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md688}{}\doxysubsection{boolean negation}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md688}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily boolean-\/negation}
\end{DoxyItemize}

Should variables prefixed with {\ttfamily -\/-\/no} be treated as negations?


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/no-\/foo}
\DoxyCodeLine{\{ \_: [], foo: false \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/no-\/foo}
\DoxyCodeLine{\{ \_: [], "{}no-\/foo"{}: true \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md689}{}\doxysubsection{combine arrays}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md689}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}
\item key\+: {\ttfamily combine-\/arrays}
\end{DoxyItemize}

Should arrays be combined when provided by both command line arguments and a configuration file.\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md690}{}\doxysubsection{duplicate arguments array}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md690}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily duplicate-\/arguments-\/array}
\end{DoxyItemize}

Should arguments be coerced into an array when duplicated\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/x 1 -\/x 2}
\DoxyCodeLine{\{ \_: [], x: [1, 2] \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/x 1 -\/x 2}
\DoxyCodeLine{\{ \_: [], x: 2 \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md691}{}\doxysubsection{flatten duplicate arrays}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md691}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily flatten-\/duplicate-\/arrays}
\end{DoxyItemize}

Should array arguments be coerced into a single array when duplicated\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/x 1 2 -\/x 3 4}
\DoxyCodeLine{\{ \_: [], x: [1, 2, 3, 4] \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/x 1 2 -\/x 3 4}
\DoxyCodeLine{\{ \_: [], x: [[1, 2], [3, 4]] \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md692}{}\doxysubsection{greedy arrays}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md692}

\begin{DoxyItemize}
\item default\+: {\ttfamily true}
\item key\+: {\ttfamily greedy-\/arrays}
\end{DoxyItemize}

Should arrays consume more than one positional argument following their flag.


\begin{DoxyCode}{0}
\DoxyCodeLine{node example -\/-\/arr 1 2}
\DoxyCodeLine{\{ \_[], arr: [1, 2] \} }

\end{DoxyCode}


{\itshape if disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example -\/-\/arr 1 2}
\DoxyCodeLine{\{ \_[2], arr: [1] \} }

\end{DoxyCode}


{\bfseries{Note\+: in {\ttfamily v18.\+0.\+0} we are considering defaulting greedy arrays to {\ttfamily false}.}}\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md693}{}\doxysubsection{nargs eats options}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md693}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}
\item key\+: {\ttfamily nargs-\/eats-\/options}
\end{DoxyItemize}

Should nargs consume dash options as well as positional arguments.\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md694}{}\doxysubsection{negation prefix}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md694}

\begin{DoxyItemize}
\item default\+: {\ttfamily no-\/}
\item key\+: {\ttfamily negation-\/prefix}
\end{DoxyItemize}

The prefix to use for negated boolean variables.


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/no-\/foo}
\DoxyCodeLine{\{ \_: [], foo: false \} }

\end{DoxyCode}


{\itshape if set to {\ttfamily quux}\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/quuxfoo}
\DoxyCodeLine{\{ \_: [], foo: false \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md695}{}\doxysubsection{populate –}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md695}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}.
\item key\+: {\ttfamily populate-\/-\/}
\end{DoxyItemize}

Should unparsed flags be stored in {\ttfamily -\/-\/} or {\ttfamily \+\_\+}.

{\itshape If disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js a -\/b -\/-\/ x y}
\DoxyCodeLine{\{ \_: [ 'a', 'x', 'y' ], b: true \} }

\end{DoxyCode}


{\itshape If enabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js a -\/b -\/-\/ x y}
\DoxyCodeLine{\{ \_: [ 'a' ], '-\/-\/': [ 'x', 'y' ], b: true \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md696}{}\doxysubsection{set placeholder key}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md696}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}.
\item key\+: {\ttfamily set-\/placeholder-\/key}.
\end{DoxyItemize}

Should a placeholder be added for keys not set via the corresponding CLI argument?

{\itshape If disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/a 1 -\/c 2}
\DoxyCodeLine{\{ \_: [], a: 1, c: 2 \} }

\end{DoxyCode}


{\itshape If enabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/a 1 -\/c 2}
\DoxyCodeLine{\{ \_: [], a: 1, b: undefined, c: 2 \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md697}{}\doxysubsection{halt at non-\/option}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md697}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}.
\item key\+: {\ttfamily halt-\/at-\/non-\/option}.
\end{DoxyItemize}

Should parsing stop at the first positional argument? This is similar to how e.\+g. {\ttfamily ssh} parses its command line.

{\itshape If disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/a run b -\/x y}
\DoxyCodeLine{\{ \_: [ 'b' ], a: 'run', x: 'y' \} }

\end{DoxyCode}


{\itshape If enabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/a run b -\/x y}
\DoxyCodeLine{\{ \_: [ 'b', '-\/x', 'y' ], a: 'run' \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md698}{}\doxysubsection{strip aliased}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md698}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}
\item key\+: {\ttfamily strip-\/aliased}
\end{DoxyItemize}

Should aliases be removed before returning results?

{\itshape If disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/test-\/field 1}
\DoxyCodeLine{\{ \_: [], 'test-\/field': 1, testField: 1, 'test-\/alias': 1, testAlias: 1 \} }

\end{DoxyCode}


{\itshape If enabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/test-\/field 1}
\DoxyCodeLine{\{ \_: [], 'test-\/field': 1, testField: 1 \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md699}{}\doxysubsection{strip dashed}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md699}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}
\item key\+: {\ttfamily strip-\/dashed}
\end{DoxyItemize}

Should dashed keys be removed before returning results? This option has no effect if {\ttfamily camel-\/case-\/expansion} is disabled.

{\itshape If disabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/test-\/field 1}
\DoxyCodeLine{\{ \_: [], 'test-\/field': 1, testField: 1 \} }

\end{DoxyCode}


{\itshape If enabled\+:}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/test-\/field 1}
\DoxyCodeLine{\{ \_: [], testField: 1 \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md700}{}\doxysubsection{unknown options as args}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md700}

\begin{DoxyItemize}
\item default\+: {\ttfamily false}
\item key\+: {\ttfamily unknown-\/options-\/as-\/args}
\end{DoxyItemize}

Should unknown options be treated like regular arguments? An unknown option is one that is not configured in {\ttfamily opts}.

{\itshape If disabled}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/unknown-\/option -\/-\/known-\/option 2 -\/-\/string-\/option -\/-\/unknown-\/option2}
\DoxyCodeLine{\{ \_: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true \} }

\end{DoxyCode}


{\itshape If enabled}


\begin{DoxyCode}{0}
\DoxyCodeLine{node example.js -\/-\/unknown-\/option -\/-\/known-\/option 2 -\/-\/string-\/option -\/-\/unknown-\/option2}
\DoxyCodeLine{\{ \_: ['-\/-\/unknown-\/option'], knownOption: 2, stringOption: '-\/-\/unknown-\/option2' \} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md701}{}\doxysection{Special Thanks}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md701}
The yargs project evolves from optimist and minimist. It owes its existence to a lot of James Halliday\textquotesingle{}s hard work. Thanks \href{https://github.com/substack}{\texttt{ substack}} {\bfseries{beep}} {\bfseries{boop}} \textbackslash{}o/\hypertarget{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md702}{}\doxysection{License}\label{md_sfcode_node_modules__angular_compiler_cli_node_modules_yargs_parser_README_autotoc_md702}
ISC 