r0gue-io/pop-cli
Vedi su GitHubrefactor: use proper #[arg] in all the clap arguments
Open
#353 aperta il 27 nov 2024
good first issuelow
Metriche repository
- Star
- (113 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
In the code, we currently use both #[arg] and #[clap] to define arguments, for example:
#[arg(short = 'o', long = "output")]
pub(crate) output_file: Option<PathBuf>,
/// For production, always build in release mode to exclude debug features.
#[clap(short = 'r', long, default_value = "true")]
pub(crate) release: bool,
Review all commands and update the argument definitions to consistently use #[arg], as it aligns with the examples provided in the clap library documentation: https://github.com/clap-rs/clap