commit - 4546110983eeb3ac44669de07b538cdb0be4401b
commit + 60e8decbd16329b42ad2d8b0ce284ba9ca640ed3
blob - f6989b0c1e71e9991c553ddaa1bd11d009ecc8cb
blob + 4bc05ef75ece9278c4df119f428a2ec99315728d
--- README.md
+++ README.md
### Options
* `--drift <DRIFT>`: BPM drift tolerance. If specified, only tracks with a BPM within `DRIFT` of the reference track will be shown.
-* `--m3u`: Create an M3U playlist file with matched tracks (saved alongside reference track).
+* `--playlist`: Create an M3U playlist file with matched tracks (saved alongside reference track).
* `-v`, `--verbose`: Enable verbose output, showing the number of files found.
* `-h`, `--help`: Print help information.
* `-V`, `--version`: Print version information.
# Print all tracks with matching key and custom drift range
./target/release/matchakey /path/to/my/track.mp3 --drift 2.0 /path/to/my/music/library
# Create an M3U playlist with matched tracks
-./target/release/matchakey /path/to/my/track.mp3 --m3u /path/to/my/music/library
+./target/release/matchakey /path/to/my/track.mp3 --playlist /path/to/my/music/library
```
blob - 54eaa5514809bb8bc41467db37661be77f16305e
blob + 7a379deb786939bd3c19b915a0ff2bbb200a6779
--- src/main.rs
+++ src/main.rs
/// Create M3U playlist with matched tracks
#[arg(long)]
- m3u: bool,
+ playlist: bool,
/// Enable verbose output
#[arg(short, long)]
);
}
- if args.m3u && !results.is_empty() {
+ if args.playlist && !results.is_empty() {
let playlist_path = args.reference.with_extension("m3u");
match File::create(&playlist_path) {
Ok(mut file) => {