property ParseOptions.--
When true, populate the result _ with everything before the -- and
the result ['--'] with everything after the --.
Examples
Example 1
Example 1
// $ deno run example.ts -- a arg1 import { parseArgs } from "@std/cli/parse_args"; console.dir(parseArgs(Deno.args, { "--": false })); // output: { _: [ "a", "arg1" ] } console.dir(parseArgs(Deno.args, { "--": true })); // output: { _: [], --: [ "a", "arg1" ] }
Type
TDoubleDash