Fix optional name parameter in client link command

This commit is contained in:
AsamK 2026-03-01 10:05:48 +01:00
parent 5cda87ee0e
commit f77a74d93f
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ pub enum CliCommands {
},
Link {
#[arg(short = 'n', long)]
name: String,
name: Option<String>,
},
ListAccounts,
ListContacts {

View File

@ -90,7 +90,7 @@ pub trait Rpc {
fn finish_link(
&self,
#[allow(non_snake_case)] deviceLinkUri: String,
#[allow(non_snake_case)] deviceName: String,
#[allow(non_snake_case)] deviceName: Option<String>,
) -> Result<Value, ErrorObjectOwned>;
#[method(name = "listAccounts", param_kind = map)]