Prints out flag options.
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);