From f96eeceefc94256babe016b0e18b95f0cf467880 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 5 Jul 2019 22:03:03 -0300 Subject: Skip "paths" that start with '--' when starting up --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.js') diff --git a/index.js b/index.js index 23d0449..102e75a 100755 --- a/index.js +++ b/index.js @@ -137,7 +137,9 @@ async function main() { const loadPlaylists = async () => { for (let i = 2; i < process.argv.length; i++) { - await appElement.handlePlaylistSource(process.argv[i], true) + if (!process.argv[i].startsWith('--')) { + await appElement.handlePlaylistSource(process.argv[i], true) + } } } -- cgit 1.3.0-6-gf8a5