Renamed the set_album_photo subcommand to move_photo

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-11-04 23:11:03 +01:00
parent 85ffdfc6af
commit f8b872a28a
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -180,7 +180,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
.help("The id of the picture(s) which you want to delete. For multiple ids, use commas.")) .help("The id of the picture(s) which you want to delete. For multiple ids, use commas."))
) )
.subcommand( .subcommand(
SubCommand::with_name("set_album_photo") SubCommand::with_name("move_photo")
.about("Move the picture to a given album.") .about("Move the picture to a given album.")
.arg(Arg::with_name("photo_id") .arg(Arg::with_name("photo_id")
.required(true) .required(true)
@ -256,7 +256,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
} else if let Some(m) = matches.subcommand_matches("delete_photo") { } else if let Some(m) = matches.subcommand_matches("delete_photo") {
let id = m.value_of("id").unwrap(); let id = m.value_of("id").unwrap();
delete_photo(&client, &lychee_session_cookie, id).await; delete_photo(&client, &lychee_session_cookie, id).await;
} else if let Some(m) = matches.subcommand_matches("set_album_photo") { } else if let Some(m) = matches.subcommand_matches("move_photo") {
let i = m.value_of("photo_id").unwrap(); let i = m.value_of("photo_id").unwrap();
let a = m.value_of("album_id").unwrap(); let a = m.value_of("album_id").unwrap();
set_album_photo(&client, &lychee_session_cookie, i, a).await; set_album_photo(&client, &lychee_session_cookie, i, a).await;