Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arg group syntax #182

Merged
merged 1 commit into from
Aug 5, 2023
Merged

Conversation

MarcusGrass
Copy link
Contributor

The clap arg-group needs the field name of the struct

Otherwise you get this:

thread 'main' panicked at 'Command list-messages: Argument group 'list-messages' contains non-existent argument 'recipient-uuid'', /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.19/src/builder/debug_asserts.rs:292:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After:

error: the following required arguments were not provided:
  <--recipient-uuid <RECIPIENT_UUID>|--group-master-key <GROUP_MASTER_KEY>>

Usage: presage-cli list-messages <--recipient-uuid <RECIPIENT_UUID>|--group-master-key <GROUP_MASTER_KEY>>

For more information, try '--help'.

Which is expected

@gferon gferon enabled auto-merge (squash) August 5, 2023 14:14
@gferon
Copy link
Collaborator

gferon commented Aug 5, 2023

Thanks!

@gferon gferon merged commit 243a69d into whisperfish:main Aug 5, 2023
3 checks passed
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