Skip to content

Commit 102d37f

Browse files
authored
fix: deprecated #[clap] attributes with #[arg] and #[command] (#3985)
This PR updates deprecated `#[clap(...)]` attributes to their modern equivalents in `clap` 4.x. The current codebase still uses outdated syntax that has been deprecated since version 4.0. By making this update, we ensure compatibility with future versions and maintain code quality.
2 parents af20891 + 360af21 commit 102d37f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/devnet-utils/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ use clap::{Parser, Subcommand};
44
use unionlabs::primitives::{H160, H256};
55

66
#[derive(Parser)]
7-
#[clap(arg_required_else_help = true)]
7+
#[command(arg_required_else_help = true)]
88
struct App {
9-
#[clap(subcommand)]
9+
#[command(subcommand)]
1010
command: Cmd,
1111
}
1212

1313
#[derive(Subcommand)]
1414
enum Cmd {
15-
#[clap(subcommand)]
15+
#[command(subcommand)]
1616
Keygen(KeygenCmd),
1717
#[command(subcommand)]
1818
Compute(ComputeCmd),

0 commit comments

Comments
 (0)