Skip to content

feat: add arg index to error context#5883

Closed
jordanjennings-mysten wants to merge 1 commit intoclap-rs:masterfrom
jordanjennings-mysten:add-arg-index-to-error-context
Closed

feat: add arg index to error context#5883
jordanjennings-mysten wants to merge 1 commit intoclap-rs:masterfrom
jordanjennings-mysten:add-arg-index-to-error-context

Conversation

@jordanjennings-mysten
Copy link

Adds arg index to the error context, LMK if this seems like a reasonable approach. We would like to utilize this information to create "at line/character XYZ" style errors using miette.

related issue
#4948

@jordanjennings-mysten jordanjennings-mysten force-pushed the add-arg-index-to-error-context branch from 8ab3e05 to 276c7e3 Compare January 17, 2025 00:59
@jordanjennings-mysten jordanjennings-mysten force-pushed the add-arg-index-to-error-context branch from 276c7e3 to 3312cc5 Compare January 17, 2025 01:01
@epage epage marked this pull request as draft January 17, 2025 16:20
@epage
Copy link
Member

epage commented Jan 17, 2025

Per our CONTRIBUTING guide we should be closing out the design discussion in the issue first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants