Skip to main content
Module

x/cliffy/examples/command/required_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";
await new Command() .allowEmpty(false) .option("-c, --cheese [type:string]", "pizza must have cheese", { required: true, }) .parse(Deno.args);