Skip to content

V1.10.3 Bugfixes, improved optional flag processing, quote processing

Compare
Choose a tag to compare
@RobSanders RobSanders released this 27 Feb 19:07
· 57 commits to stable since this release
1d3d6ed

Summarized from spec file changelog:

  • Minor cosmetic change to how help messages are generated, minor edits
    to some comments, minor cosmetic change to clitest demo code
  • Tweak to buildmode to only show optargs 'after' the point at
    which buildmode was entered.
  • Add new 'cli_dump_optargs_and_args() function for development/debug
    Designed to be called from a callback to show output of optarg and
    argument processing.
  • Updated CLI_CMD_OPTIONAL_FLAG parsing to use an validator function
    (if provided) to determine if the word being looked is a match for
    the optional flag. If no validator function is provided then the
    word much match the name of the optional flag exactly.
  • Enhance how cli_parse_line handles quotes when parsine the command
    line. This includs mixed single/double quotes, embedded quoted
    substrings, and handling 'escaped' quotes using the '' character.
  • Ensure that buildmode preserves 'empty' strings
    (ex: "", or '') when regenerating the cmdline after the user 'executes'
    the command.