|
|
@ -1,6 +1,8 @@ |
|
|
|
use clap::{Arg, Error, ErrorKind};
|
|
|
|
use clap_nested::{Command};
|
|
|
|
|
|
|
|
use crate::lib::m3u::{Playlist};
|
|
|
|
|
|
|
|
pub fn get_command<'a>() -> Command<'a, str>{
|
|
|
|
Command::new("dedupe")
|
|
|
|
.description("dedupe a m3u playlist")
|
|
|
@ -16,8 +18,9 @@ pub fn get_command<'a>() -> Command<'a, str>{ |
|
|
|
// println!("Running dedupe, logging = {}", args);
|
|
|
|
match matches.values_of("playlist") {
|
|
|
|
Some(playlists) => {
|
|
|
|
for playlist in playlists {
|
|
|
|
println!("{}", playlist)
|
|
|
|
for path in playlists {
|
|
|
|
let playlist = Playlist::read(path)?;
|
|
|
|
println!("{:?}", playlist);
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
},
|
|
|
|