Skip to content

Commit

Permalink
sui-move: drop duplicate --path options (#20005)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
yanganto and stefan-mysten authored Oct 28, 2024
1 parent 1709d22 commit 1837a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sui-move/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ struct Args {
#[clap(long = "path", short = 'p', global = true)]
pub package_path: Option<PathBuf>,
/// 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)]
Expand Down

0 comments on commit 1837a5e

Please sign in to comment.