Skip to main content
Module

x/cliffy/examples/command/arguments_syntax_variadic.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/mod.ts";
await new Command() .command("rmdir <dirs...:string>", "Remove directories.") .action((_, dirs: string[]) => { dirs.forEach((dir: string) => { console.log("rmdir %s", dir); }); }) .parse(Deno.args);