From 75276df6f6e55b36ab1a432eb7564977665c23a3 Mon Sep 17 00:00:00 2001 From: Firelight Flagboy Date: Fri, 13 Dec 2024 10:36:42 +0100 Subject: [PATCH] The CLI command ``invite user`` now take the email as an argument instead of an option --- cli/src/commands/invite/user.rs | 1 - cli/tests/integration/invitations/user.rs | 1 - newsfragments/9190.feature.rst | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 newsfragments/9190.feature.rst diff --git a/cli/src/commands/invite/user.rs b/cli/src/commands/invite/user.rs index 3322bb8160f..96a1a4d9206 100644 --- a/cli/src/commands/invite/user.rs +++ b/cli/src/commands/invite/user.rs @@ -9,7 +9,6 @@ crate::clap_parser_with_shared_opts_builder!( #[with = config_dir, device, password_stdin] pub struct Args { /// Claimer email (i.e.: The invitee) - #[arg(short, long)] email: String, /// Send email to the invitee #[arg(short, long, default_value_t)] diff --git a/cli/tests/integration/invitations/user.rs b/cli/tests/integration/invitations/user.rs index 4996ca613e9..f13b85faafc 100644 --- a/cli/tests/integration/invitations/user.rs +++ b/cli/tests/integration/invitations/user.rs @@ -24,7 +24,6 @@ async fn invite_user(tmp_path: TmpPath) { "user", "--device", &alice.device_id.hex(), - "--email", "a@b.c" ) .stdout(predicates::str::contains("Invitation URL:")); diff --git a/newsfragments/9190.feature.rst b/newsfragments/9190.feature.rst new file mode 100644 index 00000000000..b56f83dadc7 --- /dev/null +++ b/newsfragments/9190.feature.rst @@ -0,0 +1 @@ +The CLI command ``invite user`` now take the email as an argument instead of an option