{ * Class that emits BPatch's version information and help screen on standard * output. } unit UBPatchInfoWriter; interface uses UInfoWriter; type TBPatchInfoWriter = class(TInfoWriter) protected class function HelpText: string; override; end; implementation uses SysUtils, UAppInfo; { TBPatchInfoWriter } class function TBPatchInfoWriter.HelpText: string; begin Result := Format( '%0:s: binary ''patch'' - apply binary patch'#13#10 + #13#10 + 'Usage: %0:s [options] old-file [new-file] ['#13#10 + '(c) copyright 2003-2016 Peter Johnson (@delphidabbler)'#13#10, [TAppInfo.ProgramFileName] ); end; end.