Skip to content

Translate actual regex in error output? #2

@thinkerbot

Description

@thinkerbot

It's hard to debug what is going on when a match fails... what can be done?

================= expected output like ==================
usage: linecook [options]:.(?m).:\n
\n
options:\n
  -v, --version      print version\n
  -h, --help         print this help\n

======================== but was ========================
usage: linecook [options]\n
\n
options:\n
    -h, --help                       prints this help\n
    -v, --version                    print version\n

=========================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions