cpp-merge
Version:
Command line tool to produce single source file from multiple C/C++ files
19 lines (18 loc) • 752 B
TypeScript
import { Option, Argument } from "./types";
export default class HelpFormatter {
private readonly syntaxTitle;
private readonly argumentsTitle;
private readonly optionsTitle;
private readonly lineMaxLength;
private readonly smallMargin;
private readonly largeMargin;
private readonly descriptionMaxLength;
formatHelp(programName: string, description: string, args: Argument[], options: Option[]): string;
private formatSectionTitle;
formatSyntaxHelp(programName: string, args: Argument[], options: Option[]): string;
private formatArgumentsHelp;
formatArgumentHelp(argument: Argument): string;
private formatDescription;
private formatOptionsHelp;
formatOptionHelp(option: Option): string;
}