Files
DefinitelyTyped/types/command-line-usage/command-line-usage-tests.ts
2018-03-28 15:00:03 +02:00

25 lines
576 B
TypeScript

import * as commandLineUsage from "command-line-usage";
const sections = [
{
header: 'A typical app',
content: 'Generates something {italic very} important.'
},
{
header: 'Options',
optionList: [
{
name: 'input',
typeLabel: '{underline file}',
description: 'The input to process.'
},
{
name: 'help',
description: 'Print this usage guide.'
}
]
}
];
const usage = commandLineUsage(sections);