Skip to content

Call to _exit still exits the process, despite registering a callback #2092

Closed
@febeling

Description

@febeling

Call to _exit still exits the process (e.g. from process.error), despite registering a callback via exitOverride.

https://github.com/tj/commander.js/blame/f1ae2db8e2da01d6efcbfd59cbf82202f864b0c1/lib/command.js#L459-L465

What was the purpose of #1040?

Is the idea that I register a callback, but I have to throw an error from it?

Why isn't the exit skipped over if there's an override?

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