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

timharek/deno-cli-help

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);