Skip to content

Commit

Permalink
Fixed share command.
Browse files Browse the repository at this point in the history
  • Loading branch information
jscarle committed Jun 18, 2024
1 parent 7536293 commit 63f633c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OnePassword.NET/OnePasswordManager.Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void ShareItem(string itemId, string vaultId, IReadOnlyCollection<string>
if (vaultId is null || vaultId.Length == 0)
throw new ArgumentException($"{nameof(vaultId)} cannot be empty.", nameof(vaultId));

var command = $"item share {itemId} --vault {vaultId}";
var command = $"item share {itemId} --vault {vaultId} --emails {string.Join(',', emailAddresses)}";
if (expiresIn is not null)
command += $" --expires-in {expiresIn.Value.ToHumanReadable()}";
if (viewOnce is not null && viewOnce.Value)
Expand Down

0 comments on commit 63f633c

Please sign in to comment.