Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

v0.10.1

Choose a tag to compare

@felixSchl felixSchl released this 18 Aug 03:40
· 223 commits to development since this release

Fixes

  • Fix #70 - Ignore ANSI escape codes in parser. This allows the neodoc to
    be colored. For example:

    neodoc.run(`
    ${chalk.blue('Usage:')}
        prog <command> [<args>...]
    `);
    

    Thanks @matthewmueller for reporting

  • Fix #71 - Do not trim help text. This allows the developer to keep some left
    padding on the help text. The leading and trailing newlines are still removed,
    however, in order to make working with JS template strings easy.

    Thanks @matthewmueller for reporting

  • Fix optional positionals in lax-placement mode.
    For example:
    usage: prog [foo] -a
    Would fail: -a foo before this patch because [foo] simply fails at -a
    and gets omitted. The added tests cover these cases.

  • Fix 'stop-at' not working in groups in certain cases