Skip to main content
Module

x/cliffy/examples/flags/dotted_options.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
#!/usr/bin/env -S deno run
import { parseFlags } from "../../flags/flags.ts";import { OptionType } from "../../flags/types.ts";
const result = parseFlags(Deno.args, { allowEmpty: true, stopEarly: true, flags: [{ name: "bitrate.audio", aliases: ["b.a", "audio-bitrate"], type: OptionType.NUMBER, }, { name: "bitrate.video", aliases: ["b.v", "video-bitrate"], type: OptionType.NUMBER, }],});
console.log(result);