Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/examples/command/depending_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 { Command } from "../../command/command.ts";
const { options } = await new Command() .option("-u, --audio-codec <type:string>", "description ...") .option("-p, --video-codec <type:string>", "description ...", { depends: ["audio-codec"], }) .parse(Deno.args);
console.log(options);