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

x/lume/deps/cli.ts

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
import * as lume from "https://deno.land/x/lume@v2.1.1/deps/cli.ts";

Command line arguments parser based on minimist.

This module is browser compatible.

Examples

Example 1

import { parseArgs } from "https://deno.land/std@0.224.0/cli/parse_args.ts";

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

Classes

A spinner that can be used to indicate that something is loading.

Functions

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.

Shows the given message and waits for the user's input. Returns the user's input as string. This is similar to prompt() but it print user's input as * to prevent password from being shown. Use an empty mask if you don't want to show any character.

Interfaces

The options for the parseArgs call.

Options for Spinner.

Type Aliases

The value returned from parseArgs.