Skip to main content
Module

x/cliffy/examples/command/stop_early.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() .stopEarly() // <-- enable stop early .option("-d, --debug-level <level:string>", "Debug level.") .arguments("[script:string] [...args:number]") // deno-lint-ignore no-explicit-any .action((options: any, script: string, args: string[]) => { console.log("options:", options); console.log("script:", script); console.log("args:", args); }) .parse(Deno.args);