Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/clparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ pub fn parse_command_line() -> ArgMatches<'static> {
.possible_values(&["mainnet", "testnet", "devnet"])
.default_value("mainnet")
.help("Network to deploy on"),
) .subcommand(
)
.subcommand(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good formatting improvement. Moving the .subcommand( call to its own line improves code readability and makes the structure of the command builder more consistent.

SubCommand::with_name("examples")
.about("Show usage examples for OSVM CLI commands")
.arg(
Expand Down Expand Up @@ -500,5 +501,7 @@ pub fn parse_command_line() -> ArgMatches<'static> {
.help("Enable transaction history (increases storage requirements)")
)
)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix! This resolves the mismatched closing delimiter issue that was causing syntax errors. The additional closing parenthesis properly terminates the .subcommand( block that was started at line 333.

.get_matches()
}

Loading