Skip to content

Allow --interactive for successful scripts #2693

@cygnusv

Description

@cygnusv

Describe

It would be great to allow interactive mode for non-failing scripts. For example, I have a script that performs common setup steps in a mainnet fork and I want to use the interactive console afterwards. Even with --interactive, I'm forced to add trivial errors to force the interactive mode to kick in, e.g.:

...
assert False, "Stop here"  # Force activation of interactive mode to inspect state after script

Specification

I don't have suggestion, but since it would be a breaking change, a different flag would be needed, e.g. --interactive-always or --force-interactive-

Dependencies

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions