Skip to main content

@std/flags@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score82%
Published2 years ago (0.215.0)
property ParseOptions.--

When true, populate the result _ with everything before the -- and the result ['--'] with everything after the --.

Examples

Example 1

// $ deno run example.ts -- a arg1
import { parse } from "@std/flags";
console.dir(parse(Deno.args, { "--": false }));
// output: { _: [ "a", "arg1" ] }
console.dir(parse(Deno.args, { "--": true }));
// output: { _: [], --: [ "a", "arg1" ] }

Type

TDoubleDash

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/flags

Import symbol

import { type ParseOptions } from "@std/flags";
or

Import directly with a jsr specifier

import { type ParseOptions } from "jsr:@std/flags";