Skip to main content
Module

x/cliffy/examples/command/conflicting_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("-f, --file <file:string>", "read from file ...") .option("-i, --stdin [stdin:boolean]", "read from stdin ...", { conflicts: ["file"], }) .parse(Deno.args);
console.log(options);