Closed illwieckz closed 1 year ago
This code may be written in other ways:
#if CRNLIB_CMD_LINE_ALLOW_SLASH_PARAMS
if ((src_param == "/?") || (src_param == "--help"))
#else
if (src_param == "--help")
#endif
{
But this way is consistent with existing code right above:
#if CRNLIB_CMD_LINE_ALLOW_SLASH_PARAMS
if ((src_param[0] == '/') || (src_param[0] == '-'))
#else
if (src_param[0] == '-')
#endif
{
My routine to get help was:
Now I can do:
Long options
--help
is also available, and/?
is available on Windows as well.