DrKain / subclean

A cross-platform CLI tool and node module to remove advertising from subtitles. Supports Bazarr and bulk cleaning!
MIT License
56 stars 5 forks source link

1.3.4 - Default path for sweep command #16

Closed DrKain closed 2 years ago

DrKain commented 2 years ago

This is a very insignificant change, but you'll now be able to use:

subclean --sweep

Instead of:

subclean --sweep .

If no path was provided the script would fail with the error:

[Error] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true)

Now, the current directory will be used if no path is provided.
Additionally, the depth and target will now be logged when using --debug. Example:

[Info] Sweep target: F:\Media\TV Series\
[Info] Depth: 10