Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/flags/mod.ts

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
Deprecated

Use parseArgs instead. This module will be removed once the Standard Library migrates to JSR.

import * as mod from "https://deno.land/std@0.224.0/flags/mod.ts";

Command line arguments parser based on minimist.

This module is browser compatible.

Examples

Example 1

import { parse } from "https://deno.land/std@0.224.0/flags/mod.ts";

console.dir(parse(Deno.args));

Functions

f
parse
deprecated

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

Interfaces

I
ParseOptions
deprecated

The options for the parse call.

Type Aliases

T
Args
deprecated

The value returned from parse.