diesel-rs/diesel

Port diesel-cli argument parsing from clap builders to clap derives

Open

#4.955 aberto em 28 de jan. de 2026

Ver no GitHub
 (4 comments) (0 reactions) (1 assignee)Rust (1.003 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (12.054 stars)
Métricas de merge de PR
 (Mesclagem média 30d 16h) (30 fundiu PRs em 30d)

Description

Diesel-cli is a relatively old application. It was written at a time when clap did not ship a derive. This now changed on the upstream side (since quite some time). Using the derive allows to more easily change/add arguments and documentation to the CLI tool, therefore we would like to move our old argument parsing code over to use the clap derive macro. Hopefully this also makes handling CLI arguments in our application easier as they are then type safe. This needs to keep the old command line interface

The relevant code is here

https://github.com/diesel-rs/diesel/blob/a7061cc602e9dd69f889236f3c66220239c9313e/diesel_cli/src/cli.rs

Relevant documentation:

Guia do colaborador