You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present when CompFileDate is run with no parameters
Error: Exactly two file names must be specified
This isn't very helpful. It would be better if the program output either the complete or abbreviated help screen, such as
CompFileDate by DelphiDabbler (www.delphidabbler.com)
-----------------------------------------------------
Usage: CompFileDate filename1 filename2 [options]
or CompFileDate -h | -? | --help
or CompFileDate -V | --version
For further help use CompFileDate --help
The text was updated successfully, but these errors were encountered:
delphidabbler
changed the title
Changed error message when no files and no options provided to suggest --help option
Change error message when no files and no options provided to suggest --help option
Jul 20, 2014
Change TParams.Parse at lines 140/141 to set ShortHelp property to True if both file names are empty instead of raising exception.
In TMain.Execute about lines 218/219 to check if TParams.ShortHelp is True and call a new TMain.ShowShortHelp method to display required message.
Implement TMain.ShowShortHelp to display sUsage followed by new resource string for rest of the message, i.e.: 'For further help use CompFileDate --help'
Remove error code & message previously used when no file name provided, i.e.: cAppErrFileNamesSame and sAppErrFileNamesSame.
At present when CompFileDate is run with no parameters
This isn't very helpful. It would be better if the program output either the complete or abbreviated help screen, such as
The text was updated successfully, but these errors were encountered: