Skip to content

Running clarity-cli eval hangs on invalid arguments instead of failing #6496

@BowTiedRadone

Description

@BowTiedRadone

When running clarity-cli eval with invalid arguments, the command hangs instead of returning an error:

$ clarity-cli eval --help
Usage: ./target/release/clarity-cli eval [--costs] [contract-identifier] (program.clar) [vm-state.db]

$ clarity-cli eval SP123 1.clar
# hangs forever

This happens because the binary tries to open a database using the contract identifier. The expected behavior is that the CLI should only try to open a VM state DB if one is provided. Otherwise, it should fail with an error.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Status: ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions