spacedriveapp/spacedrive · error · anyhow::Error

--name is required for merge action

Error message

--name is required for merge action

What it means

Error "--name is required for merge action" thrown in spacedriveapp/spacedrive.

Source

Thrown at apps/cli/src/domains/library/args.rs:195

						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,
						merged_name: name,
					}
				}
				_ => anyhow::bail!(
					"Invalid action '{}'. Supported: share-local, join-remote, merge",
					action_str
				),
			};

		Ok(LibrarySyncSetupInput {
			local_device_id,
			remote_device_id: remote_device,
			local_library_id: local_library,
			remote_library_id: self.remote_library,
			action,

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at apps/cli/src/domains/library/args.rs:195 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/1ed00935d800cf8e. Report an issue: GitHub.