avail icon indicating copy to clipboard operation
avail copied to clipboard

refactor : Migrate #[clap(...)] to #[arg(...)] / #[command(...)] in clap 4.x

Open Himess opened this issue 1 year ago • 0 comments

Description

Updated #[clap(...)] attributes to #[command(...)] and #[arg(...)] where appropriate. This ensures compatibility with the latest clap versions and improves clarity in CLI argument definitions.

Testing Performed

Verified that the updated attributes correctly map to their intended clap functionalities. Checked that the binary compiles without errors and maintains expected behavior.

Checklist

  • [X] I have performed a self-review of my own code.
  • [X] The tests pass successfully with cargo test.
  • [X] The code was formatted with cargo fmt.
  • [X] The code compiles with no new warnings with cargo build --release and cargo build --release --features runtime-benchmarks.
  • [X] The code has no new warnings when using cargo clippy.

Himess avatar Mar 14 '25 09:03 Himess