Skip to content

fix(cli): require file path for import - #2450

Open
UfukNode wants to merge 1 commit into
0xMiden:nextfrom
UfukNode:fix-cli-import-require-file
Open

fix(cli): require file path for import#2450
UfukNode wants to merge 1 commit into
0xMiden:nextfrom
UfukNode:fix-cli-import-require-file

Conversation

@UfukNode

Copy link
Copy Markdown
Contributor

miden-client import accepted an empty invocation because the filename list was optional, so it initialized the client and exited successfully without importing anything.

This makes the filename argument required and adds it to the existing empty-command CLI regression test.

Testing:

  • cargo test -p miden-client-cli --test integration cli_empty_commands -- --exact --nocapture
  • ./target/debug/miden-client import
  • ./target/debug/miden-client import --help
  • cargo clippy -p miden-client-cli --all-targets -- -D warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant