spacedriveapp/spacedrive · error · anyhow::Error
--name is required for join-remote action
Error message
--name is required for join-remote action
What it means
Error "--name is required for join-remote action" thrown in spacedriveapp/spacedrive.
Source
Thrown at apps/cli/src/domains/library/args.rs:180
_ => anyhow::bail!("Leader must be 'local' or 'remote'"),
};
// Parse action
let action_str = self.action.as_deref().unwrap_or("share-local");
let action =
match action_str {
"share-local" => {
let name = self.name.clone().ok_or_else(|| {
anyhow::anyhow!("--name is required for share-local action")
})?;
LibrarySyncAction::ShareLocalLibrary { library_name: name }
}
"join-remote" => {
let remote_library_id = self.remote_library.ok_or_else(|| {
anyhow::anyhow!("--remote-library is required for join-remote action")
})?;
let name = self.name.clone().ok_or_else(|| {
anyhow::anyhow!("--name is required for join-remote action")
})?;
LibrarySyncAction::JoinRemoteLibrary {
remote_library_id,
remote_library_name: name,
}
}
"merge" => {
let local_library_id = local_library;
let remote_library_id = self.remote_library.ok_or_else(|| {
anyhow::anyhow!("--remote-library is required for merge action")
})?;
let name = self
.name
.clone()
.ok_or_else(|| anyhow::anyhow!("--name is required for merge action"))?;
LibrarySyncAction::MergeLibraries {
local_library_id,
remote_library_id,View on GitHub (pinned to 6dfeccf211)
When it happens
Trigger: Thrown at apps/cli/src/domains/library/args.rs:180 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of spacedriveapp/spacedrive@6dfeccf211 (2026-08-16).
Data as JSON: /api/errors/ccd3cab2d6d45ef2.
Report an issue: GitHub.