avail
avail copied to clipboard
refactor : Migrate #[clap(...)] to #[arg(...)] / #[command(...)] in clap 4.x
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 --releaseandcargo build --release --features runtime-benchmarks. - [X] The code has no new warnings when using
cargo clippy.