Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (21 loc) · 545 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 545 Bytes

deno-cli-help

Prints out flag options.

Example

import { printHelp, Options } from "https://deno.land/x/[email protected]/mod.ts"

const options: Options = {
  name: '<cli-command>',
  version: '1.0.0',
  description: 'Brief description of what this tool does.',
  author: [{ name: 'Tim Hårek Andreassen', email: '[email protected]' }],
  source: 'https://github.com/timharek/deno-cli-help',
  flags: [
    {
      name: 'version',
      aliases: ['v', 'V'],
      description: 'Prints version.'
    }
  ]
}

printHelp(options);