sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Move to `clap` Derive API

Open szokeasaurusrex opened this issue 1 year ago • 0 comments

Changing to the clap Derive API will allow us to define commands as structs, and have the arguments automatically parsed into the respective fields on the struct. The Derive API is arguably simpler and using the Derive API will allow us to avoid type errors like #1888, since these would be caught at compile time rather than runtime. We are currently primarily only using the alternative Builder API for historical reasons (the Builder API is older than the Derive API).

szokeasaurusrex avatar Jan 08 '24 14:01 szokeasaurusrex