Skip to content

Fix error handling logic when reporting invalid command line options. #16

@tpn

Description

@tpn

How to reproduce the problem (using --NoFile as an argument instead of the correct --NoFileIo):

C:\perfecthash\src> timemem .\x64\Release\PerfectHashCreate.exe C:\Temp\Events-1894.keys
c:\temp\output Chm01 Crc32RotateWXYZ And 1 --NoFile
Invalid command line argument: NoFile
c:\perfecthash\src\perfecthash\perfecthasherrorhandling.c: 220: FormatMessageA failed with error: 234 (0xea).  More data is available.

I'm doing something quirky with FormatMessage when expansion args are present in the format string. Haven't yet investigated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions