From 1837a5e366553e51d1f87ff2d034720476ee1b39 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Mon, 28 Oct 2024 23:08:40 +0800 Subject: [PATCH] sui-move: drop duplicate `--path` options (#20005) ## Description Use `default_value_if` to instead of using the same alias, and avoid to have panic in debug build. Fix #20003 ## Test plan Reuse existing test cases --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [X] CLI: add `--run-bytecode-verifier` and `--print-diags-to-stderr` for `sui-move` - [ ] Rust SDK: - [ ] REST API: --------- Co-authored-by: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> --- crates/sui-move/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sui-move/src/main.rs b/crates/sui-move/src/main.rs index 49676c20b498a..4d763b8182a33 100644 --- a/crates/sui-move/src/main.rs +++ b/crates/sui-move/src/main.rs @@ -26,10 +26,10 @@ struct Args { #[clap(long = "path", short = 'p', global = true)] pub package_path: Option, /// If true, run the Move bytecode verifier on the bytecode from a successful build - #[clap(long = "path", short = 'p', global = true)] + #[clap(long, global = true)] pub run_bytecode_verifier: bool, /// If true, print build diagnostics to stderr--no printing if false - #[clap(long = "path", short = 'p', global = true)] + #[clap(long, global = true)] pub print_diags_to_stderr: bool, /// Package build options #[clap(flatten)]