Skip to main content
Module

x/cliffy/examples/command/negatable_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() // default value will be automatically set to true if no --check option exists .option("--no-check", "No check.") .option("--color <color:string>", "Color name.", { default: "yellow" }) .option("--no-color", "No color.") // no default value .option("--remote <url:string>", "Remote url.") .option("--no-remote", "No remote.") .parse(Deno.args);
console.log(options);