mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
577 B
TypeScript
25 lines
577 B
TypeScript
import commandLineUsage = require("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);
|