Skip to content

Commit

Permalink
[cli] Correct the help doc displayed for bytecode version #15271
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethk authored Nov 14, 2024
1 parent ba4c827 commit 2bb2d43
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/aptos/src/common/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,14 +1157,8 @@ pub struct MovePackageDir {

/// ...or --bytecode BYTECODE_VERSION
/// Specify the version of the bytecode the compiler is going to emit.
/// Defaults to `6`, or `7` if language version 2 is selected
/// (through `--move-2` or `--language-version=2`), .
#[clap(
long,
default_value_if("move_2", "true", "7"),
alias = "bytecode",
verbatim_doc_comment
)]
/// Defaults to `7`.
#[clap(long, alias = "bytecode", verbatim_doc_comment)]
pub bytecode_version: Option<u32>,

/// ...or --compiler COMPILER_VERSION
Expand Down

0 comments on commit 2bb2d43

Please sign in to comment.