Skip to content

Conversation

@ggwpez
Copy link
Member

@ggwpez ggwpez commented Mar 3, 2024

No description provided.

Copy link
Contributor

@liamaharon liamaharon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could also write #[clap(index = 0)] for From to be extra explicit.

@ggwpez
Copy link
Member Author

ggwpez commented Mar 4, 2024

LGTM. Could also write #[clap(index = 0)] for From to be extra explicit.

You mean the pub from: LiveState? It has a clap(flatten), so cannot be positional.
And it seems that the index starts at 1 anyway (plus it will panic when one is skipped): https://docs.rs/clap/latest/clap/struct.Arg.html#method.index

@liamaharon liamaharon merged commit 13ee499 into main Mar 4, 2024
@ggwpez ggwpez deleted the oty-snapshot-path-arg branch March 4, 2024 23:56
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.

3 participants