Skip to main content
Module

x/cliffy/examples/command/action_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() .version("0.1.0") .option("-i, --info [arg:boolean]", "Print some info.", { standalone: true, action: () => { console.log("Some info"); Deno.exit(0); }, }) .parse(Deno.args);
console.log("not executed");